Skip to content

Commit

Permalink
Replace all remaining pkgprojs with NuGet Pack task (#56712)
Browse files Browse the repository at this point in the history
* Runtime specific and doc file packaging fixes

* Replace all remaining pkgprojs with NuGet Pack task

* Avoid NuGet/Home/issues/10368

* Update PackageValidation package to latest
  • Loading branch information
ViktorHofer authored Aug 5, 2021
1 parent a9dcbb9 commit 91bf612
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 28 deletions.
4 changes: 0 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
<Import Project="..\Directory.Build.props" />
<PropertyGroup>
<StrongNameKeyId>Microsoft</StrongNameKeyId>
<PackageDescription>Provides the System.Runtime.CompilerServices.Unsafe class, which provides generic, low-level functionality for manipulating pointers.

Commonly Used Types:
System.Runtime.CompilerServices.Unsafe</PackageDescription>
</PropertyGroup>
</Project>
24 changes: 0 additions & 24 deletions pkg/System.Runtime.CompilerServices.Unsafe.pkgproj

This file was deleted.

11 changes: 11 additions & 0 deletions src/CompatibilitySuppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<Suppressions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Suppression>
<DiagnosticId>PKV006</DiagnosticId>
<Target>.NETStandard,Version=v1.0</Target>
</Suppression>
<Suppression>
<DiagnosticId>PKV006</DiagnosticId>
<Target>.NETFramework,Version=v4.5</Target>
</Suppression>
</Suppressions>
8 changes: 8 additions & 0 deletions src/System.Runtime.CompilerServices.Unsafe.ilproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
<CoreCompileDependsOn>$(CoreCompileDependsOn);GenerateVersionFile</CoreCompileDependsOn>
<DocumentationFile>$(MSBuildThisFileDirectory)System.Runtime.CompilerServices.Unsafe.xml</DocumentationFile>
<IlasmFlags>$(IlasmFlags) -DEBUG=$(DebugOptimization)</IlasmFlags>
<IsPackable>true</IsPackable>
<PackageDescription>Provides the System.Runtime.CompilerServices.Unsafe class, which provides generic, low-level functionality for manipulating pointers.

Commonly Used Types:
System.Runtime.CompilerServices.Unsafe</PackageDescription>
</PropertyGroup>
<PropertyGroup Condition="$([MSBuild]::GetTargetFrameworkIdentifier('$(TargetFramework)')) == '.NETCoreApp'">
<ExtraMacros>#define netcoreapp</ExtraMacros>
Expand All @@ -27,6 +32,9 @@
<Reference Include="$(CoreAssembly)"
Condition="'$(TargetFramework)' != 'netstandard2.0'" />
</ItemGroup>
<ItemGroup>
<NETStandardCompatError Include="netcoreapp2.0" Supported="$(NetCoreAppMinimum)" />
</ItemGroup>

<Target Name="GenerateVersionFile"
DependsOnTargets="GetAssemblyVersion;ResolveReferences"
Expand Down

0 comments on commit 91bf612

Please sign in to comment.