You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Program Files\dotnet\sdk\5.0.301\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(993,5): error NETSDK1150: The referenced project '..\Cedaron.Build.CreateAssemblyInfo\Cedaron.Build.CreateAssemblyInfo.csproj' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. [src\Cedaron.FormBuilder.Migrate\Cedaron.FormBuilder.Migrate.csproj]
Only happens when building with a rid rather than a rid-independent build
This error doesn't stop the build but returns a nonzero error code from dotnet.exe causing the build chain to fail.
Relevant lines from Cedaron.Build.CreateAssemblyInfo.csproj:
So what is this? The ProjectReference is needed because Cedaron.Build.CreateAssemblyInfo.csproj is a dependent project project, but the actual output of Cedaron.Build.CreateAssemblyInfo.csproj is AssemblyInfo.cs; the fact that it produces an executable is a byproduct.
The text was updated successfully, but these errors were encountered:
Ah that link contains the unfortunate text "neither would launch" and neither is CreateAssemblyInfo copied to the output directory so I thought it was talking about something else.
C:\Program Files\dotnet\sdk\5.0.301\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(993,5): error NETSDK1150: The referenced project '..\Cedaron.Build.CreateAssemblyInfo\Cedaron.Build.CreateAssemblyInfo.csproj' is a non self-contained executable. A non self-contained executable cannot be referenced by a self-contained executable. [src\Cedaron.FormBuilder.Migrate\Cedaron.FormBuilder.Migrate.csproj]
Only happens when building with a rid rather than a rid-independent build
This error doesn't stop the build but returns a nonzero error code from dotnet.exe causing the build chain to fail.
Relevant lines from
Cedaron.Build.CreateAssemblyInfo.csproj
:Relevant lines from
Cedaron.FormBuilder.Migrate.csproj
:So what is this? The ProjectReference is needed because Cedaron.Build.CreateAssemblyInfo.csproj is a dependent project project, but the actual output of Cedaron.Build.CreateAssemblyInfo.csproj is AssemblyInfo.cs; the fact that it produces an executable is a byproduct.
The text was updated successfully, but these errors were encountered: