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 ProjectConfigurationRule is added to SolutionModel by AddProjectConfigurationRule and output as slnx,
no affect on output slnx.
Environment
architecture: x64
dotnet sdk: 9.0.201
dotnet runtime: 9.0.3
Microsoft.VisualStudio.SolutionPersistence: 1.0.52 and github latest source( 19c3ca7 )
Steps to reproduce
create new console project and add Microsoft.VisualStudio.SolutionPersistence package
add following minimal code
check output slnx
here is the code:
staticasyncTaskMinimalReproducible(){varsolutionModel=newSolutionModel();varproj=solutionModel.AddProject("app1/app1.csproj");// comment out following three lines, then <Build Solution="Debug|*" Project="false"/> element will be added under app1/app1.csproj's element// solutionModel.AddBuildType("Release");// solutionModel.AddBuildType("Debug");// solutionModel.AddPlatform("Any CPU");proj.AddProjectConfigurationRule(newConfigurationRule(BuildDimension.Build,"Debug","Any CPU","false"));awaitSolutionSerializers.SlnXml.SaveAsync("../test.slnx",solutionModel,default);}
Expected result
<Build Project="false"/> is added under <Project Path="app1/app1.csproj">
I tested on latest source on github(commit hash: 19c3ca7 ), I got same output.
uncomment AddBuildType and AddPlatform and run, output the following slnx(configurations of BuildType and PlatformType is disappeared?);
Overview
When ProjectConfigurationRule is added to SolutionModel by
AddProjectConfigurationRule
and output as slnx,no affect on output slnx.
Environment
Steps to reproduce
Microsoft.VisualStudio.SolutionPersistence
packagehere is the code:
Expected result
<Build Project="false"/>
is added under<Project Path="app1/app1.csproj">
Actual result
there is no
<Build>
element under app1/app1.csproj's element.Additional
I tested on latest source on github(commit hash: 19c3ca7 ), I got same output.
uncomment AddBuildType and AddPlatform and run, output the following slnx(configurations of BuildType and PlatformType is disappeared?);
The text was updated successfully, but these errors were encountered: