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
and running the below command fails, dotnet publish "MY_TEST_APP_CSPROJ_PATH" -c Release -o "RELEASE_PROJ_PATH" -r win10-x64 /p:TargetFramework=net6.0
But, I can run the below command fine, dotnet publish "MY_TEST_APP_CSPROJ_PATH" -c Release -o "RELEASE_PROJ_PATH" -r win10-x64 /p:TargetFramework=net5.0
To be clear, I can build totally fine with net 5.0, it fails only with net 6.0.
Note: As a workaround, I updated csproj to accept the variable (TF) <TargetFramework>$(TF)</TargetFramework>
and running the below command works, dotnet publish "MY_TEST_APP_CSPROJ_PATH" -c Release -o "RELEASE_PROJ_PATH" -r win10-x64 /p:TF=net6.0
The text was updated successfully, but these errors were encountered:
#19487 - Could not re-open this issue So I'm creating a new one.
Below is the my csproj file,
and running the below command fails,
dotnet publish "MY_TEST_APP_CSPROJ_PATH" -c Release -o "RELEASE_PROJ_PATH" -r win10-x64 /p:TargetFramework=net6.0
But, I can run the below command fine,
dotnet publish "MY_TEST_APP_CSPROJ_PATH" -c Release -o "RELEASE_PROJ_PATH" -r win10-x64 /p:TargetFramework=net5.0
To be clear, I can build totally fine with net 5.0, it fails only with net 6.0.
Note: As a workaround, I updated csproj to accept the variable (TF)
<TargetFramework>$(TF)</TargetFramework>
and running the below command works,
dotnet publish "MY_TEST_APP_CSPROJ_PATH" -c Release -o "RELEASE_PROJ_PATH" -r win10-x64 /p:TF=net6.0
The text was updated successfully, but these errors were encountered: