Skip to content

Commit

Permalink
Workaround NuGet restore problem with .NET Core
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone committed Feb 5, 2018
1 parent 3f78617 commit 09a63f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ You need Visual Studio 2017 with the .NET Core cross-development toolset.
Open a Visual Studio Command prompt and run the following command:

```
MSBuild msbuild\icebuilder.proj /t:Restore
MSBuild msbuild\icebuilder.proj /t:NuGetPack
```

Expand Down
10 changes: 8 additions & 2 deletions msbuild/icebuilder.proj
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,19 @@
<Schemas Include="SliceCompile.*.xaml;ProjectItemsSchema.xaml"/>
</ItemGroup>

<Target Name="Build">
<Target Name="Restore">
<MSBuild Projects="netstandard2.0\icebuilder.msbuild.netstandard2.0.csproj"
Properties="Platform=AnyCPU;Configuration=$(Configuration)"
Targets="Restore"/>
</Target>

<Target Name="Build" DependsOnTargets="Restore">
<MSBuild Projects="net45\icebuilder.msbuild.net45.csproj"
Properties="Platform=AnyCPU;Configuration=$(Configuration)"
Targets="Build"/>
<MSBuild Projects="netstandard2.0\icebuilder.msbuild.netstandard2.0.csproj"
Properties="Platform=AnyCPU;Configuration=$(Configuration)"
Targets="Restore;Build"/>
Targets="Build"/>
</Target>

<Target Name="NuGetPack" DependsOnTargets="Build;GetNuGet">
Expand Down

0 comments on commit 09a63f1

Please sign in to comment.