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

error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1 #11156

Open
MarcoRossignoli opened this issue Dec 17, 2024 · 2 comments
Assignees
Labels
Priority:1 Work that is critical for the release, but we could probably ship without

Comments

@MarcoRossignoli
Copy link
Member

MarcoRossignoli commented Dec 17, 2024

Issue Description

I'm using the preview version:

MSBuild version = "17.13.0-preview-24611-01+fc1f22bcf"

and when I use msbuild from cli I got this error.

If I build in VS all is good.

Steps to Reproduce

Contact me for the binlog or @YuliiaKovalova

Expected Behavior

It should build.

Actual Behavior

It fails the build with "error MSB4025: The project file could not be loaded. Data at the root level is invalid. Line 1, position 1"

Analysis

No response

Versions & Configurations

MSBuild version = "17.13.0-preview-24611-01+fc1f22bcf"

@YuliiaKovalova YuliiaKovalova added the Priority:1 Work that is critical for the release, but we could probably ship without label Dec 17, 2024
@YuliiaKovalova YuliiaKovalova self-assigned this Dec 17, 2024
@YuliiaKovalova
Copy link
Member

YuliiaKovalova commented Dec 17, 2024

Hi @MarcoRossignoli ,

Thank you for reporting the bug.

The issue is caused by recent change associated with .slnx support.
While we are working on the stable fix, please opt out the problematic feature by using:
set MSBUILDDISABLEFEATURESFROMVERSION=17.14

For more information about this mechanism please navigate to: https://github.com/dotnet/msbuild/blob/main/documentation/wiki/ChangeWaves.md

@JanKrivanek
Copy link
Member

JanKrivanek commented Dec 20, 2024

We should:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:1 Work that is critical for the release, but we could probably ship without
Projects
None yet
Development

No branches or pull requests

3 participants