Error NETSDK1045 #133

Open
opened 2026-01-29 16:30:20 +00:00 by claunia · 2 comments
Owner

Originally created by @SuperJMN on GitHub (May 23, 2023).

I suspect this is because the tool doesn't support packagin .NET 7 projects yet.

But my main concern is, why does the tool depend on the version of the project it packs? It's like file compression tool being able to compress certain files. It looks arbitrary.

What's the reason behind it?

Originally created by @SuperJMN on GitHub (May 23, 2023). I suspect this is because the tool doesn't support packagin .NET 7 projects yet. But my main concern is, why does the tool depend on the version of the project it packs? It's like file compression tool being able to compress certain files. It looks arbitrary. What's the reason behind it?
Author
Owner

@bqstony commented on GitHub (Dec 14, 2025):

I have the same problem with .net 10. Also after creating a global.json with the sdk version. My solution was to call the following command dotnet publish app\app.csproj --framework net10.0 --configuration Release --self-contained true --runtime linux-x64 -t:CreateDeb

@bqstony commented on GitHub (Dec 14, 2025): I have the same problem with .net 10. Also after creating a global.json with the sdk version. My solution was to call the following command `dotnet publish app\app.csproj --framework net10.0 --configuration Release --self-contained true --runtime linux-x64 -t:CreateDeb`
Author
Owner

@SuperJMN commented on GitHub (Dec 14, 2025):

I have the same problem with .net 10. Also after creating a global.json with the sdk version. My solution was to call the following command dotnet publish app\app.csproj --framework net10.0 --configuration Release --self-contained true --runtime linux-x64 -t:CreateDeb

I ended up creating my own tool DotnetPackaging https://github.com/SuperJMN/DotNetPackaging

@SuperJMN commented on GitHub (Dec 14, 2025): > I have the same problem with .net 10. Also after creating a global.json with the sdk version. My solution was to call the following command `dotnet publish app\app.csproj --framework net10.0 --configuration Release --self-contained true --runtime linux-x64 -t:CreateDeb` I ended up creating my own tool DotnetPackaging https://github.com/SuperJMN/DotNetPackaging
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dotnet-packaging#133