I get this error when I try to reload my project that I had unloaded as shown in the screenshot below:
It says this line is from my Microsoft.Managed.Core.targets
- I tried updating my NuGet packages.
- I tried changing my Environment Variable path value to where msbuild.exe is located
- I tried looking for a solution to change the Microsoft.Managed.Core.targets to ignore that check, but I don't think that is a good solution
Failure happens here. I believe this is the line that fails.
Below is from my microsoft managed.core.targets
<Import Project="Microsoft.Managed.EditorConfig.targets" Condition="$(MSBuildVersion) >= 16.1.0" />
This is from microsoft.managed.editorconfig.targets
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. -->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<!-- Default this to false until the ".editorconfig in compiler" feature is no longer experimental.
At that point this PropertyGroup can simply be deleted. -->
<DiscoverEditorConfigFiles Condition="'$(DiscoverEditorConfigFiles)' == ''">false</DiscoverEditorConfigFiles>
</PropertyGroup>
<ItemGroup>
<PotentialEditorConfigFiles Include="@(Compile->GetPathsOfAllDirectoriesAbove()->Combine('.editorconfig'))" Condition="'$(DiscoverEditorConfigFiles)' != 'false'" />
<EditorConfigFiles Include="@(PotentialEditorConfigFiles->Exists())" Condition="'$(DiscoverEditorConfigFiles)' != 'false'" />
</ItemGroup>
</Project>