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

<NoWarn>NU1701</NoWarn> ignored on project reference #5999

Closed
Petermarcu opened this issue Oct 6, 2017 · 4 comments
Closed

<NoWarn>NU1701</NoWarn> ignored on project reference #5999

Petermarcu opened this issue Oct 6, 2017 · 4 comments
Assignees
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Resolution:Duplicate This issue appears to be a Duplicate of another issue Type:Bug

Comments

@Petermarcu
Copy link

@mafalarz reported this issue here: dotnet/core#869

NU1701 ignored on project reference

Despite adding the <NoWarn>NU1701</NoWarn> on all my project reference like this:

<ProjectReference Include="..\Reports\Reports.csproj">
   <NoWarn>NU1701</NoWarn>
</ProjectReference>

I still get the warning message

NU1701: Package 'Teradata.Net.Data.Provider 15.11.0.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.

Also on publishing Nugget and adding <NoWarn>NU1701</NoWarn to my nugget package:

> <PackageReference Include="Carbon.ClientQueries" Version="0.0.1.16-Preview">
>       <NoWarn>NU1701</NoWarn>
> </PackageReference>

I keep getting warning:

NU1701: Package 'Teradata.Net.Data.Provider 15.11.0.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETStandard,Version=v2.0'. This package may not be fully compatible with your project.

I think this is because my nugget has a reference to a project reference of my solution like this:
image

@rohit21agrawal
Copy link
Contributor

@mishra14 can you take a look?

@rohit21agrawal rohit21agrawal added Area:ErrorHandling warnings and errors/log messages & related error codes. Type:Bug labels Oct 9, 2017
@mishra14
Copy link
Contributor

mishra14 commented Oct 9, 2017

@mafalarz Thanks for reporting the issue. Let me answer the 2 cases that you are facing -

  1. Despite adding theNU1701 on all my project reference....
    We do not support adding NoWarn in a project reference. You should instead add a <NoWarn>NU1701</NoWarn> to ..\Reports\Reports.csproj.

  2. Also on publishing Nugget and adding NU1701</NoWarn to my nugget package....
    We do not currently support applying no warn to all the transitive dependencies of a package. We have another issue tracking that.. To fix this, you have 2 options -
    Add a Project wide NoWarn -

  <PropertyGroup>
    <NoWarn>NU1701</NoWarn>
  </PropertyGroup>

OR
Add a reference to Teradata.Net.Data.Provider with a NoWarn -

<PackageReference Include="Teradata.Net.Data.Provider" Version="15.11.0.1">
     <NoWarn>NU1701</NoWarn>
</PackageReference>

Please let us know if you need any more help from us.

@ghost
Copy link

ghost commented Oct 9, 2017

@mishra14 Thanks for the workaround :)
I'll keep track of #5740 to see the outcome of the design change request

@mishra14
Copy link
Contributor

mishra14 commented Oct 9, 2017

@mafalarz Thanks for getting back to us. I will close this issue as a dupe of #5740

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area:ErrorHandling warnings and errors/log messages & related error codes. Resolution:Duplicate This issue appears to be a Duplicate of another issue Type:Bug
Projects
None yet
Development

No branches or pull requests

3 participants