dotnet / dotnet/msbuild

How to suppress MSBuildWorkspace.OpenProjectAsync throwing for "This package may not be fully compatible with your project."

Open
#4,314 0 comments 0 reactions 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

Hi,
how can i suppress this error while running MsBuildWorkspace.OpenProjectAsync ?

Msbuild failed when processing the file 'pathto.csproj' with message: pathto.csproj: (0, 0): Package 'MyPackage 4.0.30.113024' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.2'. This package may not be fully compatible with your project.

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.