Skip to content

error MSB6006: "dotnet.exe" exited with code -532462766. (With PublishTrimmed=true) #3668

Open
@gmeks

Description

@gmeks

Host (useful for support):
Version: 3.0.0
Commit: 7d57652f33

If i enabled PublishTrimmed=true when trying to publish a .net Core 3.0 application ( Newly updated from .net Core 2.2) i get the following error:
C:\SourceCode\PlaniaHomeMVC\BuildServerAgent>dotnet publish -c Release -r win10-x64 /p:PublishSingleFile=true /p:PublishTrimmed=true
Microsoft (R) Build Engine version 16.3.0+0f4c62fea for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restore completed in 26,23 ms for C:\SourceCode\PlaniaHomeMVC\PlaniaHomeShared\PlaniaHomeShared.csproj.
  Restore completed in 40,52 ms for C:\SourceCode\PlaniaHomeMVC\HomeAgentShared\HomeAgentShared.csproj.
  Restore completed in 40,68 ms for C:\SourceCode\PlaniaHomeMVC\BuildServerAgent\BuildServerAgent.csproj.
  PlaniaHomeShared -> C:\SourceCode\PlaniaHomeMVC\PlaniaHomeShared\bin\Release\netcoreapp3.0\PlaniaHomeShared.dll
  HomeAgentShared -> C:\SourceCode\PlaniaHomeMVC\HomeAgentShared\bin\Release\netcoreapp3.0\HomeAgentShared.dll
  BuildServerAgent -> C:\SourceCode\PlaniaHomeMVC\BuildServerAgent\bin\Release\netcoreapp3.0\win10-x64\BuildServerAgent.dll
C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.ILLink.targets(87,5): error MSB6006: "dotnet.exe" exited with code -532462766. [C:\SourceCode\PlaniaHomeMVC\BuildServerAgent\BuildServerAgent.csproj]

And im unsure what i have done wrong, i assume i missed something in the upgrade to .NET Core 3.0. If i remove PublishTrimmed it works

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions