Skip to content

MSBUILD 17.13.9.7704 MSB4025 #96

@bigminer

Description

@bigminer

Issue Description

We started seeing this error when some of our devs upgraded to 17.13.9.7704 from 17.11.2.32701.

foo.sln(1,1): error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1.

Turns out this section of the sln file is invalid according to msbuild 17.13.9.x:

GlobalSection(DevPartner Solution Properties) = postSolution
EndGlobalSection

After removing this section from the sln file the error went away. Seems to be something related to MicroFocus.

Steps to Reproduce

Upgrade msbuild from 17.11.2.32701. to 7.13.9.7704 against a solution that looks like:

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "foo", "bar.csproj", "{DB35CD3D-452D-40D2-B5A4-96F009AC4C98}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|Any CPU = Debug|Any CPU
		Release|Any CPU = Release|Any CPU
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{DB35CD3D-452D-40D2-B5A4-96F009AC4C98}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{DB35CD3D-452D-40D2-B5A4-96F009AC4C98}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{DB35CD3D-452D-40D2-B5A4-96F009AC4C98}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{DB35CD3D-452D-40D2-B5A4-96F009AC4C98}.Release|Any CPU.Build.0 = Release|Any CPU
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
	GlobalSection(DevPartner) = postSolution
	EndGlobalSection
	GlobalSection(DevPartner) = postSolution
	EndGlobalSection
EndGlobal

Expected Behavior

Perhaps a better error if DevPartner Solution Properties is no longer valid.

Actual Behavior

Fails to run solution and reports Data at the root level is invalid. Line 1, position 1.

Analysis
No response

Versions & Configurations
No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions