dotnet / dotnet/sourcelink

VS2019 16.11.2 MSB4057

Open
#744 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.4k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

After upgrading to Visual Studio 2019 16.11.2 some of my sourcelink projects throw an error when compiling.

```
Severity Code Description Project File Line Suppression State
Error MSB4057 The target "InitializeSourceControlInformationFromSourceControlManager" does not exist in the project. XXX.MyProject.Contracts C:\Users\XXX\.nuget\packages\microsoft.sourcelink.common\1.0.0\build\InitializeSourceControlInformation.targets 24
```

This error only shows for some projects (4 out of 69) in a solution. The PackageReference is added though the Directory.Build.props file at the root of the solution. The projects are netstandard2.1 but there are many other netstandard2.1 projects in this solution. I do not see any correlation between working and non-working projects. If comment out this ItemGroup the build works correctly. This is only an issue with the local build. the CI server (Azure Devops) looks to work correctly.

```



```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.