Windows 10 Problem encountered when run "dotnet publish"

  • Thread starter Thread starter James_001a
  • Start date Start date
J

James_001a

Hi All,Let me first give a big picture on my project. The main project is using .NET8.0, and it has 2 dependencies. One of the dependencies is using netcoreapp2.1. I encountered a problem when trying to publish the proj using following command:"dotnet publish xxxxxxx.csproj -c Release -f net8.0 -o output_file_path -r win-x64 --self-contained true"The error is as below: both version 2.1.30 and 2.1.0 is not specified in our project file. (We only include <TargetFramework>netcoreapp2.1</TargetFramework> in the dependency's csproj file) Similar problem did not occur befo

Continue reading...
 
Back
Top