Skip to content

Commit

Permalink
Enabled central package management and lock files.
Browse files Browse the repository at this point in the history
  • Loading branch information
reduckted committed Nov 20, 2024
1 parent 746862c commit d232f74
Show file tree
Hide file tree
Showing 7 changed files with 2,950 additions and 18 deletions.
2 changes: 2 additions & 0 deletions visual-studio/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<ImplicitUsings>enable</ImplicitUsings>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
<RootNamespace>GitWebLinks</RootNamespace>
<RestoreLockedMode>true</RestoreLockedMode>
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
</PropertyGroup>

</Project>
20 changes: 20 additions & 0 deletions visual-studio/Directory.Packages.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<Project>
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="Community.VisualStudio.Toolkit.17" Version="17.0.527"/>
<PackageVersion Include="Community.VisualStudio.VSCT" Version="16.0.29.6"/>
<PackageVersion Include="coverlet.collector" Version="6.0.2"/>
<PackageVersion Include="Fluid.Core" Version="2.12.0"/>
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="Microsoft.VisualStudio.SDK" Version="17.0.31902.203"/>
<PackageVersion Include="Microsoft.VisualStudio.SDK.Analyzers" Version="17.7.47"/>
<PackageVersion Include="Microsoft.VSSDK.BuildTools" Version="17.12.2069"/>
<PackageVersion Include="NSubstitute" Version="5.3.0" />
<PackageVersion Include="xunit" Version="2.9.2" />
<PackageVersion Include="xunit.runner.msbuild" Version="2.9.2"/>
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2"/>
</ItemGroup>
</Project>
1 change: 1 addition & 0 deletions visual-studio/GitWebLinks.sln
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
Directory.Build.props = Directory.Build.props
Directory.Packages.props = Directory.Packages.props
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "build", "build", "{C801FC46-E22B-4804-B7A5-8BA6F30BA96E}"
Expand Down
18 changes: 6 additions & 12 deletions visual-studio/source/GitWebLinks/GitWebLinks.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MinimumVisualStudioVersion>17.0</MinimumVisualStudioVersion>
Expand Down Expand Up @@ -219,26 +219,20 @@
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Community.VisualStudio.Toolkit.17">
<Version>17.0.527</Version>
</PackageReference>
<PackageReference Include="Community.VisualStudio.Toolkit.17"/>
<PackageReference Include="Community.VisualStudio.VSCT">
<Version>16.0.29.6</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Fluid.Core">
<Version>2.12.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.0.31902.203" ExcludeAssets="runtime">
<PackageReference Include="Fluid.Core"/>
<PackageReference Include="Microsoft.VisualStudio.SDK" ExcludeAssets="runtime">
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudio.SDK.Analyzers">
<Version>17.7.47</Version>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.VSSDK.BuildTools" Version="17.12.2069">
<PackageReference Include="Microsoft.VSSDK.BuildTools">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down Expand Up @@ -301,4 +295,4 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
<Import Project="$(MSBuildThisFileDirectory)..\..\build\PublishToMarketplace.targets" />
</Project>
</Project>
Loading

0 comments on commit d232f74

Please sign in to comment.