AdamsLair / duality

a 2D Game Development Framework
https://adamslair.github.io/duality
MIT License
1.4k stars 290 forks source link

fix dotnet build not working #842

Closed Barsonax closed 4 years ago

Barsonax commented 4 years ago

While adding a benchmarkdotnet project I noticed some problems when using the dotnet cli. This PR aims to fix these problems:

ilexp commented 4 years ago

Why is SolutionDir undefined though? Is it a deprecated? What's the difference between the dotnet CLI and regular msbuild here?

Updated sourcelink as it has been out of beta for a while.

👍

Barsonax commented 4 years ago

Why is SolutionDir undefined though? Is it a deprecated? What's the difference between the dotnet CLI and regular msbuild here?

Updated sourcelink as it has been out of beta for a while.

👍

Its only defined if you build the solution. If you build a project its undefined. When running benchmarks you want to be able to run a dotnet command directly on the project.

By putting it in a props file the variable is now always available regardless how you build the code.

ilexp commented 4 years ago

Ah, makes sense.