Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Use new parser from vs-solutionpersistence to later enable .slnx support #644

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Merge branch 'main' of https://github.com/mruxmohan4/slngen into dev/…

bee26ae
Select commit
Loading
Failed to load commit list.
Draft

[WIP] Use new parser from vs-solutionpersistence to later enable .slnx support #644

Merge branch 'main' of https://github.com/mruxmohan4/slngen into dev/…
bee26ae
Select commit
Loading
Failed to load commit list.
Azure Pipelines / microsoft.slngen CI failed Jan 24, 2025 in 7m 4s

Build #12.0.7+d31cf7814c had test failures

Details

Tests

  • Failed: 30 (3.13%)
  • Passed: 927 (96.87%)
  • Other: 0 (0.00%)
  • Total: 957

Annotations

Check failure on line 513 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.slngen CI

Build log #L513

Error: The process '/opt/hostedtoolcache/dotnet/dotnet' failed with exit code 1

Check failure on line 518 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.slngen CI

Build log #L518

Dotnet command failed with non-zero exit code on the following projects : [ '' ]

Check failure on line 513 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.slngen CI

Build log #L513

Error: The process '/opt/hostedtoolcache/dotnet/dotnet' failed with exit code 1

Check failure on line 518 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.slngen CI

Build log #L518

Dotnet command failed with non-zero exit code on the following projects : [ '' ]

Check failure on line 1 in Microsoft.VisualStudio.SlnGen.UnitTests.SlnFileTests.TryParseExistingSolution

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.slngen CI

Microsoft.VisualStudio.SlnGen.UnitTests.SlnFileTests.TryParseExistingSolution

Shouldly.ShouldAssertException : projectGuidsByPath
    should be
[["src\Microsoft.VisualStudio.SlnGen\Microsoft.VisualStudio.SlnGen.csproj" => c8d336e5-9e65-4d34-ba9a-db58936947cf], ["test\Microsoft.VisualStudio.SlnGen.UnitTests\Microsoft.VisualStudio.SlnGen.UnitTests.csproj" => b55acbf0-dc34-44ba-8535-8f81325b6d70], ["//FolderA//" => 9c915fe4-72a5-4368-8979-32b3983e6041], ["//FolderB//" => d3a9f802-38cc-4f8d-8de9-8df9c8b7eadc]]
    but was
[["src/Microsoft.VisualStudio.SlnGen/Microsoft.VisualStudio.SlnGen.csproj" => c8d336e5-9e65-4d34-ba9a-db58936947cf], ["test/Microsoft.VisualStudio.SlnGen.UnitTests/Microsoft.VisualStudio.SlnGen.UnitTests.csproj" => b55acbf0-dc34-44ba-8535-8f81325b6d70], ["/FolderA/" => 9c915fe4-72a5-4368-8979-32b3983e6041], ["/FolderB/" => d3a9f802-38cc-4f8d-8de9-8df9c8b7eadc]]
    difference
[*["src/Microsoft.VisualStudio.SlnGen/Microsoft.VisualStudio.SlnGen.csproj" => c8d336e5-9e65-4d34-ba9a-db58936947cf]*, *["test/Microsoft.VisualStudio.SlnGen.UnitTests/Microsoft.VisualStudio.SlnGen.UnitTests.csproj" => b55acbf0-dc34-44ba-8535-8f81325b6d70]*, *["/FolderA/" => 9c915fe4-72a5-4368-8979-32b3983e6041]*, *["/FolderB/" => d3a9f802-38cc-4f8d-8de9-8df9c8b7eadc]*]
Raw output
   at Microsoft.VisualStudio.SlnGen.UnitTests.SlnFileTests.TryParseExistingSolution() in /_/src/Microsoft.VisualStudio.SlnGen.UnitTests/SlnFileTests.cs:line 985
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.VisualStudio.SlnGen.UnitTests.SlnFileTests.ProjectConfigurationPlatformOrderingSameAsProjects

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.slngen CI

Microsoft.VisualStudio.SlnGen.UnitTests.SlnFileTests.ProjectConfigurationPlatformOrderingSameAsProjects

Shouldly.ShouldAssertException : File.ReadAllText(path)
    should be with options: Ignoring line endings
"
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{7E0F1516-6200-48BD-83FC-3EFA3AB4A574}") = "C", "x14pis2l.veu\C\C.csproj", "{0CCA75AE-ED20-431E-8853-B9F54333E87A}"
EndProject
Project("{7E0F1516-6200-48BD-83FC-3EFA3AB4A574}") = "A", "x14pis2l.veu\A\A.csproj", "{D744C26F-1CCB-456A-B490-CEB39334051B}"
EndProject
Project("{7E0F1516-6200-48BD-83FC-3EFA3AB4A574}") = "B", "x14pis2l.veu\B\B.csproj", "{88152E7E-47E3-45C8-B5D3-DDB15B2F0435}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{0CCA75AE-ED20-431E-8853-B9F54333E87A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{0CCA75AE-ED20-431E-8853-B9F54333E87A}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{0CCA75AE-ED20-431E-8853-B9F54333E87A}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{0CCA75AE-ED20-431E-8853-B9F54333E87A}.Release|Any CPU.Build.0 = Release|Any CPU
		{D744C26F-1CCB-456A-B490-CEB39334051B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{D744C26F-1CCB-456A-B490-CEB39334051B}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{D744C26F-1CCB-456A-B490-CEB39334051B}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{D744C26F-1CCB-456A-B490-CEB39334051B}.Release|Any CPU.Build.0 = Release|Any CPU
		{88152E7E-47E3-45C8-B5D3-DDB15B2F0435}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{88152E7E-47E3-45C8-B5D3-DDB15B2F0435}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{88152E7E-47E3-45C8-B5D3-DDB15B2F0435}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{88152E7E-47E3-45C8-B5D3-DDB15B2F0435}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {00CB211B-D6BE-49C6-AF57-2604ECCD9E72}
	EndGlobalSection
EndGlobal
"
    but was
"
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{7E0F1516-6200-48BD-83FC-3EFA3AB4A574}") = "x14pis2l.veu\C\C", "x14pis2l.veu\C\C.csproj", "{0CCA75AE-ED20-431E-8853-B9F54333E87A}"
EndProject
Project("{7E0F1516-6200-48BD-83FC-3EFA3AB4A574}") = "x14pis2l.veu\A\A", "x14pis2l.veu\A\A.csproj", "{D744C26F-1CCB-456A-B490-CEB39334051B}"
EndProject
Project("{7E0F1516-6200-48BD-83FC-3EFA3AB4A574}") = "x14pis2l.veu\B\B", "x14pis2l.veu\B\B.csproj", "{88152E7E-47E3-45C8-B5D3-DDB15B2F0435}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{0CCA75AE-ED20-431E-8853-B9F54333E87A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{0CCA75AE-ED20-431E-8853-B9F54333E87A}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{0CCA75AE-ED20-431E-8853-B9F54333E87A}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{0CCA75AE-ED20-431E-8853-B9F54333E87A}.Release|Any CPU.Build.0 = Release|Any CPU
		{D744C26F-1CCB-456A-B490-CEB39334051B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{D744C26F-1CCB-456A-B490-CEB39334051B}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{D744C26F-1CCB-456A-B490-CEB39334051B}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{D744C26F-1CCB-456A-B490-CEB39334051B}.Release|Any CPU.Build.0 = Release|Any CPU
		{88152E7E-47E3-45C8-B5D3-DDB15B2F0435}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{88152E7E-47E3-45C8-B5D3-DDB15B2F0435}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{88152E7E-47E3-45C8-B5D3-DDB15B2F0435}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{88152E7E-47E3-45C8-B5D3-DDB15B2F0435}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {00CB211B-D6BE-49C6-AF57-2604ECCD9E72}
	EndGlobalSection
EndGlob
Raw output
   at Microsoft.VisualStudio.SlnGen.UnitTests.SlnFileTests.ProjectConfigurationPlatformOrderingSameAsProjects() in /_/src/Microsoft.VisualStudio.SlnGen.UnitTests/SlnFileTests.cs:line 727
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.VisualStudio.SlnGen.UnitTests.SlnFileTests.PathsWorkForAllDirectorySeparatorChars

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.slngen CI

Microsoft.VisualStudio.SlnGen.UnitTests.SlnFileTests.PathsWorkForAllDirectorySeparatorChars

Shouldly.ShouldAssertException : actualSolutionText
    should be with options: Ignoring line endings
"
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProjectA", "ProjectA\ProjectA.csproj", "{E859E866-96F9-474E-A1EA-6539385AD236}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProjectB", "ProjectB\ProjectB.csproj", "{893607F9-C204-4CB2-8BF2-1F71B4198CD2}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProjectC", "ProjectC\ProjectC.csproj", "{081A3445-4E74-4AE9-95B6-FF564FE70CA3}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{E859E866-96F9-474E-A1EA-6539385AD236}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{E859E866-96F9-474E-A1EA-6539385AD236}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{E859E866-96F9-474E-A1EA-6539385AD236}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{E859E866-96F9-474E-A1EA-6539385AD236}.Release|Any CPU.Build.0 = Release|Any CPU
		{893607F9-C204-4CB2-8BF2-1F71B4198CD2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{893607F9-C204-4CB2-8BF2-1F71B4198CD2}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{893607F9-C204-4CB2-8BF2-1F71B4198CD2}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{893607F9-C204-4CB2-8BF2-1F71B4198CD2}.Release|Any CPU.Build.0 = Release|Any CPU
		{081A3445-4E74-4AE9-95B6-FF564FE70CA3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{081A3445-4E74-4AE9-95B6-FF564FE70CA3}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{081A3445-4E74-4AE9-95B6-FF564FE70CA3}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{081A3445-4E74-4AE9-95B6-FF564FE70CA3}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {AA784BCF-D76D-4DD7-91D2-79E6A14A4DE2}
	EndGlobalSection
EndGlobal
"
    but was
"
Microsoft Visual Studio Solution File, Format Version 12.00
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProjectA\ProjectA", "ProjectA\ProjectA.csproj", "{A9A5E578-5402-4567-87AB-434D1A7C658D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProjectB\ProjectB", "ProjectB\ProjectB.csproj", "{16D1E052-0F19-4B4E-993F-B162E4507E8D}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProjectC\ProjectC", "ProjectC\ProjectC.csproj", "{0DD85FAE-8740-43E3-9081-B5F393EEF1A7}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{A9A5E578-5402-4567-87AB-434D1A7C658D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{A9A5E578-5402-4567-87AB-434D1A7C658D}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{A9A5E578-5402-4567-87AB-434D1A7C658D}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{A9A5E578-5402-4567-87AB-434D1A7C658D}.Release|Any CPU.Build.0 = Release|Any CPU
		{16D1E052-0F19-4B4E-993F-B162E4507E8D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{16D1E052-0F19-4B4E-993F-B162E4507E8D}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{16D1E052-0F19-4B4E-993F-B162E4507E8D}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{16D1E052-0F19-4B4E-993F-B162E4507E8D}.Release|Any CPU.Build.0 = Release|Any CPU
		{0DD85FAE-8740-43E3-9081-B5F393EEF1A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{0DD85FAE-8740-43E3-9081-B5F393EEF1A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{0DD85FAE-8740-43E3-9081-B5F393EEF1A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{0DD85FAE-8740-43E3-9081-B5F393EEF1A7}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
		SolutionGuid = {AA784BCF-D76D-4DD7-91D2-79E6A14A4DE2}
Raw output
   at Microsoft.VisualStudio.SlnGen.UnitTests.SlnFileTests.PathsWorkForAllDirectorySeparatorChars() in /_/src/Microsoft.VisualStudio.SlnGen.UnitTests/SlnFileTests.cs:line 510
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.VisualStudio.SlnGen.UnitTests.SlnFileTests.ProjectSolutionFolders

See this annotation in the file changed.

@azure-pipelines azure-pipelines / microsoft.slngen CI

Microsoft.VisualStudio.SlnGen.UnitTests.SlnFileTests.ProjectSolutionFolders

System.NullReferenceException : Object reference not set to an instance of an object.
Raw output
   at Microsoft.VisualStudio.SlnGen.UnitTests.SlnFileTests.ProjectSolutionFolders() in /_/src/Microsoft.VisualStudio.SlnGen.UnitTests/SlnFileTests.cs:line 820
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)