Skip to content

Commit

Permalink
Add repository URL to packages
Browse files Browse the repository at this point in the history
Fix MSBuildLocator stuff

Signed-off-by: Jonathan Mezach <[email protected]>
  • Loading branch information
jmezach committed Jul 24, 2024
1 parent b55374d commit e0a7020
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PackageProjectUrl>https://github.com/rr-wfm/MSBuild.Sdk.SqlProj</PackageProjectUrl>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning">
<Version>3.6.139</Version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ public static IResourceBuilder<DataTierApplicationResource> AddDataTierApplicati
{
if (!MSBuildLocator.IsRegistered)
{
MSBuildLocator.RegisterInstance(MSBuildLocator.QueryVisualStudioInstances().OrderByDescending(
instance => instance.Version).First());
MSBuildLocator.RegisterDefaults();
}

var resource = new DataTierApplicationResource(name);
Expand Down

0 comments on commit e0a7020

Please sign in to comment.