nlkl / Optional

A robust option type for C#
MIT License
903 stars 73 forks source link

Make build script work out of the box #54

Open mario-d-s opened 6 years ago

mario-d-s commented 6 years ago

I just cloned the repo and tried to .\build.ps1. This is the output:

C:\Program Files\dotnet\sdk\2.1.104\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(327,5): error : Assets file ' D:\src\Projects\Optional\src\Optional\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [D:\src\Project s\Optional\src\Optional\Optional.csproj] C:\Program Files\dotnet\sdk\2.1.104\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(167,5): error : Assets file ' D:\src\Projects\Optional\src\Optional\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [D:\src\Project s\Optional\src\Optional\Optional.csproj] C:\Program Files\dotnet\sdk\2.1.104\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(327,5): error : Assets file ' D:\src\Projects\Optional\src\Optional\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [D:\src\Project s\Optional\src\Optional\Optional.csproj] C:\Program Files\dotnet\sdk\2.1.104\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(167,5): error : Assets file ' D:\src\Projects\Optional\src\Optional\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [D:\src\Project s\Optional\src\Optional\Optional.csproj] C:\Program Files\dotnet\sdk\2.1.104\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(327,5): error : Assets file ' D:\src\Projects\Optional\src\Optional\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [D:\src\Project s\Optional\src\Optional\Optional.csproj] C:\Program Files\dotnet\sdk\2.1.104\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(167,5): error : Assets file ' D:\src\Projects\Optional\src\Optional\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [D:\src\Project s\Optional\src\Optional\Optional.csproj] C:\Program Files\dotnet\sdk\2.1.104\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(327,5): error : Assets file ' D:\src\Projects\Optional\src\Optional\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [D:\src\Project s\Optional\src\Optional\Optional.csproj] C:\Program Files\dotnet\sdk\2.1.104\Sdks\Microsoft.NET.Sdk\build\Microsoft.PackageDependencyResolution.targets(167,5): error : Assets file ' D:\src\Projects\Optional\src\Optional\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. [D:\src\Project s\Optional\src\Optional\Optional.csproj]

Imo there should be a one-shot build script that takes care of cleaning up previous artifacts, restoring NuGet packages and other dependencies, ...

If you like, I could figure it out and make a PR.

nlkl commented 6 years ago

Hi,

I agree and will take a look at it. Thanks for bringing it to my attention!

/ Nils