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
When adding projects to an slnx that use project extensions that are unknown to the vs-solutionpersistence library, we are not correctly discovering the DefaultProjectTypeGuid MSBuild property and applying that to the SolutionProjectModel's Type correctly.
rename src/IKVM.Maven.Sdk.Tasks.Java/IKVM.Maven.Sdk.Tasks.Java.csproj to src/IKVM.Maven.Sdk.Tasks.Java/IKVM.Maven.Sdk.Tasks.Java.msbuildproj
convert the solution to slnx with dotnet sln migrate
inspect the generated slnx and note there is a Type for the IKVM.Maven.Sdk.Tasks.Java project
remove the project with dotnet sln remove src/IKVM.Maven.Sdk.Tasks.Java/IKVM.Maven.Sdk.Tasks.Java.msbuildproj
add the project with dotnet sln add src/IKVM.Maven.Sdk.Tasks.Java/IKVM.Maven.Sdk.Tasks.Java.msbuildproj
inspect the generated slnx and note there is no Type for the IKVM.Maven.Sdk.Tasks.Java project
Exceptions (if any)
during dotnet sln add, the following message is thrown:
Project 'D:\ikvm-maven\src\IKVM.Maven.Sdk.Tasks.Java\IKVM.Maven.Sdk.Tasks.Java.msbuildproj' has an unknown project type and cannot be added to the solution file. Contact your SDK provider for support.
Further technical details
Include the output of dotnet --info: 9.0.2xx
The text was updated successfully, but these errors were encountered:
baronfel
added
cli-ux
Issues and PRs that deal with the UX of the CLI (exit codes, log output, verbs/options, and so on)
and removed
untriaged
Request triage from a team member
labels
Mar 15, 2025
Describe the bug
When adding projects to an slnx that use project extensions that are unknown to the vs-solutionpersistence library, we are not correctly discovering the
DefaultProjectTypeGuid
MSBuild property and applying that to the SolutionProjectModel'sType
correctly.To Reproduce
https://github.com/ikvmnet/ikvm-maven
src/IKVM.Maven.Sdk.Tasks.Java/IKVM.Maven.Sdk.Tasks.Java.csproj
tosrc/IKVM.Maven.Sdk.Tasks.Java/IKVM.Maven.Sdk.Tasks.Java.msbuildproj
dotnet sln migrate
IKVM.Maven.Sdk.Tasks.Java
projectdotnet sln remove src/IKVM.Maven.Sdk.Tasks.Java/IKVM.Maven.Sdk.Tasks.Java.msbuildproj
dotnet sln add src/IKVM.Maven.Sdk.Tasks.Java/IKVM.Maven.Sdk.Tasks.Java.msbuildproj
IKVM.Maven.Sdk.Tasks.Java
projectExceptions (if any)
during
dotnet sln add
, the following message is thrown:Further technical details
dotnet --info
: 9.0.2xxThe text was updated successfully, but these errors were encountered: