ProjectRootElement.Open throws due to missing #6799
Labels
author-responded
Author responded, needs response from dev team.
bug
needs-more-info
Issues that need more info to continue investigation.
triaged
Issue Description
When try to open csproj project file with ProjectRootElement.Open from namespace Microsoft.Build.Construction then it throws following exception. I couldn't find
4.0.4.1
version anywhere, and my attempt to solve with bindingRedirect didn't work, it's blocking my work for another P1 issue.error: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. trace: System.AggregateException: One or more errors occurred. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. trace: at System.MemoryExtensions.AsSpan(String text) trace: at Microsoft.Build.Evaluation.Expander
2.Function1.ExtractPropertyFunction(String expressionFunction, IElementLocation elementLocation, Object propertyValue, UsedUninitializedProperties usedUnInitializedProperties, IFileSystem fileSystem)
Steps to Reproduce
Currently I have project pointing private Azure repository, please contact me if you need repo project.
Expected Behavior
Actual Behavior
Analysis
Versions & Configurations
Attach a binlog
The text was updated successfully, but these errors were encountered: