Skip to content

Commit

Permalink
Switched build pipeline back to windows-latest (#392)
Browse files Browse the repository at this point in the history
- Changed vmImage to `windows-latest`
- Referenced Microsoft.NETFramework.ReferenceAssemblies`
- Removed `FrameworkPathOverride`
- Removed `AutomaticallyUseReferenceAssemblyPackages`
  • Loading branch information
abatishchev authored Apr 27, 2022
1 parent 4eacd3b commit 47cdba3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pipelines/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ trigger:
- '*.md'

pool:
vmImage: windows-2019
vmImage: windows-latest

variables:
solution: 'JWT.sln'
Expand Down
10 changes: 6 additions & 4 deletions src/JWT/JWT.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
<TargetFrameworks>netstandard1.3;netstandard2.0;net6.0;net35;net40;net46;</TargetFrameworks>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'net35'">
<FrameworkPathOverride>$(MSBuildProgramFiles32)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client</FrameworkPathOverride>
<AutomaticallyUseReferenceAssemblyPackages>false</AutomaticallyUseReferenceAssemblyPackages>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetFramework)' == 'net35' OR '$(TargetFramework)' == 'net40' OR '$(TargetFramework)' == 'net46'">
<TargetFrameworkIdentifier>.NETFramework</TargetFrameworkIdentifier>
</PropertyGroup>
Expand Down Expand Up @@ -51,5 +47,11 @@
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.7.0" />
<PackageReference Include="System.Security.Cryptography.Csp" Version="4.3.0" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net35'">
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>

0 comments on commit 47cdba3

Please sign in to comment.