workaround (3)

root

Changing the AssemblyName does not work

To align our Dockerfile's we intended to name the dll on publish, but <AssemblyName>foo</AssemblyName> doesn't seem to work. As a workaround we create a symbolic link entrypoint.dll which reduces Dockerfile to ENTRYPOINT [ "dotnet", "entrypoint.dll" ] <Target Name="CreateSymoblicEntrypoint" AfterTargets="Publish" Condition="'$(OS)' == 'Unix' Or '$(OS)' ==…

Continue reading...
root

dotnet build runtime parameter does not work

To reduce the size of our builds and docker images, we added the configuration to only build for linux, but.. The dotnet runtime parameter does not work GitHub issue #14281 dotnet build --runtime <RUNTIME_IDENTIFIER> error NETSDK1134: Building a solution with a specific RuntimeIdentifier is not…

Continue reading...