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

C# DevKit 1.3.x issue with [MSBuild]::StableStringHash #987

Closed
JanKrivanek opened this issue Mar 13, 2024 · 4 comments
Closed

C# DevKit 1.3.x issue with [MSBuild]::StableStringHash #987

JanKrivanek opened this issue Mar 13, 2024 · 4 comments
Assignees
Labels
bug Something isn't working fixed-pending-release msbuild triaged The issue has been triaged
Milestone

Comments

@JanKrivanek
Copy link
Member

Remedy

Upgrade to C# Dev Kit 1.4.x (any) and above

Issue Description

Fail to load the project successfully with errors about "[MSBuild]::StableStringHash..."
image

[error] (C:\Users\v-wakang\BlazorServer\BlazorServer.csproj): The expression "[MSBuild]::StableStringHash(BlazorServer.csproj)" cannot be evaluated. Could not load type 'Microsoft.NET.StringTools.FowlerNollVo1aHash' from assembly 'Microsoft.NET.StringTools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
[error] Failed to load project 'C:\Users\v-wakang\BlazorServer\BlazorServer.csproj'. One or more errors occurred. (The expression "[MSBuild]::StableStringHash(BlazorServer.csproj)" cannot be evaluated. Could not load type 'Microsoft.NET.StringTools.FowlerNollVo1aHash' from assembly 'Microsoft.NET.StringTools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.  C:\Program Files\dotnet\sdk\9.0.100-preview.2.24120.18\Microsoft.Common.CurrentVersion.targets)

Reason

Issue is caused by incompatible version of MSBuild binaries being loaded byt the C# Dev Kit prerelease version 1.3.10. More details: dotnet/msbuild#9765
The issue was fixed in the C# Dev Kit 1.4.2 and above.

@webreidi webreidi pinned this issue Mar 13, 2024
@arunchndr arunchndr added bug Something isn't working msbuild labels Mar 18, 2024
@arunchndr arunchndr added this to the Mar2024 milestone Mar 18, 2024
@arunchndr
Copy link
Member

@JanKrivanek would you work with @lifengl to do the needful to update the msbuild?

@webreidi webreidi added triaged The issue has been triaged fixed-pending-release and removed area-project-cps labels Mar 18, 2024
@JanKrivanek
Copy link
Member Author

No action expected here.
This issue is just for documentation purposes (as discussed with @webreidi) - in case there would still be users on 1.3 versions, searching the web for advise on this problem.

Copy link

github-actions bot commented Apr 3, 2024

This issue has been marked as stale after 14 days of inactivity. @[ @JanKrivanek, @lifengl @], could you please take a look?

@JanKrivanek
Copy link
Member Author

Closing this - as it was created only for documentation purposes - and will serve such even in closed state.

@JanKrivanek JanKrivanek closed this as not planned Won't fix, can't repro, duplicate, stale Apr 3, 2024
@arunchndr arunchndr unpinned this issue Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed-pending-release msbuild triaged The issue has been triaged
Projects
None yet
Development

No branches or pull requests

4 participants