DotNET: Difference between revisions
Tag: Undo |
nuget-to-nix is much more straightforward to use than fetch-deps script |
||
| Line 24: | Line 24: | ||
dotnet-sdk = dotnetCorePackages.sdk_8_0; | dotnet-sdk = dotnetCorePackages.sdk_8_0; | ||
dotnet-runtime = dotnetCorePackages.runtime_8_0; | dotnet-runtime = dotnetCorePackages.runtime_8_0; | ||
nugetDeps = | nugetDeps = ./nuget-deps.nix; # only if there are NuGet dependencies, real file will be genned later | ||
meta = with lib; { | meta = with lib; { | ||
| Line 35: | Line 35: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
To generate <code>nuget-deps.nix</code> file you can run | |||
After that the package will build normally. Remember to re-run | <code>dotnet restore --packages=packageDir SomeProject.csproj && nuget-to-nix packageDir >nuget-deps.nix; rm -rf packageDir</code> | ||
After that the package will build normally. Remember to re-run nuget-to-nix every time the package is updated. | |||
== Building non-.NET Core packages == | == Building non-.NET Core packages == | ||