Skip to content

Commit

Permalink
Add netcoreapp3.1 target to nuget package
Browse files Browse the repository at this point in the history
From #19, targeting only netcore3.0 might be a problem when only the 3.1 SDK is installed.
The plugin can be compiled with both SDKs and only 3.1 is LTS so it's as good a time as any to start targeting the newer version.
  • Loading branch information
madd0 committed Jan 4, 2020
1 parent faf3f6f commit 791ca41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Madd0.AzureStorageDriver/Madd0.AzureStorageDriver.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
<PropertyGroup>
<TargetFrameworks>netcoreapp3.0;net46</TargetFrameworks>
<TargetFrameworks>netcoreapp3.0;netcoreapp3.1;net46</TargetFrameworks>
<LangVersion>latest</LangVersion>
<UseWpf>true</UseWpf>
<AssemblyName>Madd0.AzureStorageDriver</AssemblyName>
Expand All @@ -27,7 +27,7 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
<PropertyGroup Condition="'$(TargetFramework)' != 'net46'">
<DefineConstants>NETCORE</DefineConstants>
</PropertyGroup>

Expand All @@ -45,7 +45,7 @@
<Reference Include="PresentationFramework" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
<ItemGroup Condition="'$(TargetFramework)' != 'net46'">
<PackageReference Include="Microsoft.Azure.Cosmos.Table">
<Version>1.0.5</Version>
</PackageReference>
Expand Down Expand Up @@ -86,7 +86,7 @@
</Compile>
</ItemGroup>

<Target Name="PostBuild1" AfterTargets="PostBuildEvent" Condition="'$(TargetFramework)' == 'netcoreapp3.0'">
<Target Name="PostBuild1" AfterTargets="PostBuildEvent" Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
<Exec Command="xcopy /i/y/s &quot;$(TargetDir)*.*&quot; &quot;%25LocalAppData%25\\LINQPad\\Drivers\\DataContext\\NetCore\\$(TargetName)&quot;" />
</Target>

Expand Down

0 comments on commit 791ca41

Please sign in to comment.