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

The CLI tools preview4 with csproj results in Type-Mismatch Warnings #979

Closed
stefc opened this issue Nov 22, 2016 · 1 comment
Closed

The CLI tools preview4 with csproj results in Type-Mismatch Warnings #979

stefc opened this issue Nov 22, 2016 · 1 comment

Comments

@stefc
Copy link

stefc commented Nov 22, 2016

Environment data

Product Information:
Version: 1.0.0-preview4-004110
Commit SHA-1 hash: 740a7fe3fd

Runtime Environment:
OS Name: Windows
OS Version: 6.1.7601
OS Platform: Windows
RID: win7-x64
Base Path: C:\Program Files\dotnet\sdk\1.0.0-preview4-004110

VS Code version: 1.7.1

C# Extension version: 1.5.4

Steps to reproduce

create a new project with 'dotnet new' with new project format (aka csproj)

The Console.WriteLine() statement would be marked with a warning.

The hint contains the following :
Assuming assembly reference 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'System.Console' matches identity 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Runtime', you may need to supply runtime policy [sample]

Expected behavior

No warning on this type mismatch 4.0.0.0 vs 4.1.0.0

Actual behavior

The warning

@DustinCampbell
Copy link
Member

Thanks for reporting this! It's a duplicate of #967.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants