Skip to content

Commit 6acd112

Browse files
authored
Don't set PrivateAssets on NuGet and Microsoft.CodeAnalysis (#143)
1 parent 43fd928 commit 6acd112

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

src/Microsoft.Build.Utilities.ProjectCreation.UnitTests/Microsoft.Build.Utilities.ProjectCreation.UnitTests.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,9 @@
1010
</ItemGroup>
1111
<ItemGroup>
1212
<PackageReference Include="Microsoft.NET.Test.Sdk" />
13-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
14-
<PackageReference Include="NuGet.Frameworks" />
15-
<PackageReference Include="NuGet.Packaging" />
1613
<PackageReference Include="Shouldly" />
1714
<PackageReference Include="xunit" />
1815
<PackageReference Include="xunit.runner.visualstudio" />
19-
<PackageReference Update="NuGet.*" ExcludeAssets="Runtime" Condition="'$(TargetFramework)' == 'net472'" />
2016
</ItemGroup>
2117
<ItemGroup>
2218
<Reference Include="System.IO.Compression" Condition="'$(TargetFramework)' == 'net472'" />

src/Microsoft.Build.Utilities.ProjectCreation/Microsoft.Build.Utilities.ProjectCreation.csproj

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,17 @@
2424
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2525
<IncludeSymbols>true</IncludeSymbols>
2626
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
27-
<MonoCecilAssemblyRoot Condition="'$(PkgMono_Cecil)' != '' And '$(TargetFramework)' == 'net472'">$(PkgMono_Cecil)\lib\net40</MonoCecilAssemblyRoot>
28-
<MonoCecilAssemblyRoot Condition="'$(PkgMono_Cecil)' != '' And '$(TargetFramework)' != 'net472'">$(PkgMono_Cecil)\lib\netstandard2.0</MonoCecilAssemblyRoot>
2927
</PropertyGroup>
3028
<ItemGroup>
3129
<PackageReference Include="Microsoft.Build" ExcludeAssets="Runtime" />
3230
<PackageReference Include="Microsoft.Build.Utilities.Core" ExcludeAssets="Runtime" />
33-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" PrivateAssets="All" />
31+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" />
3432
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" PrivateAssets="All" />
3533
<PackageReference Include="Microsoft.VisualStudio.SDK.EmbedInteropTypes" Condition="'$(TargetFramework)' == 'net472'" PrivateAssets="All" />
3634
<PackageReference Include="Microsoft.VisualStudio.Setup.Configuration.Interop" Condition="'$(TargetFramework)' == 'net472'" ExcludeAssets="Runtime" PrivateAssets="All" />
37-
<PackageReference Include="Mono.Cecil" VersionOverride="0.11.4" IncludeAssets="None" PrivateAssets="All" GeneratePathProperty="true" />
38-
<PackageReference Include="NuGet.Frameworks" PrivateAssets="All" />
39-
<PackageReference Include="NuGet.Packaging" PrivateAssets="All" />
40-
<PackageReference Include="NuGet.ProjectModel" PrivateAssets="All" />
35+
<PackageReference Include="NuGet.Frameworks" />
36+
<PackageReference Include="NuGet.Packaging" />
37+
<PackageReference Include="NuGet.ProjectModel" />
4138
<PackageReference Include="System.ValueTuple" VersionOverride="4.5.0" Condition="'$(TargetFramework)' == 'net472'" ExcludeAssets="Compile" />
4239
</ItemGroup>
4340
<ItemGroup>

0 commit comments

Comments
 (0)