runtime icon indicating copy to clipboard operation
runtime copied to clipboard

450+ warnings on a build!

Open stephentoub opened this issue 10 years ago • 15 comments

They're all currently of the form:

C:\Program Files (x86)\MSBuild\14.0\bin\Microsoft.Common.CurrentVersion.targets(1819,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved.  These reference conflicts are listed in the build log when log verbosity is set to detailed.

or:

D:\j\workspace\windows_nt_debug88592b53\Tools\packageresolve.targets(74,5): warning : Your project is not referencing the ".NETCoreApp,Version=v1.0" framework. Add a reference to ".NETCoreApp,Version=v1.0" in the "frameworks" section of your project.json, and then re-run NuGet restore.

but it makes it really hard to spot important warnings.

Replaces https://github.com/dotnet/corefx/issues/9464

cc: @weshaggard, @ericstj, @joperezr, @karajas

stephentoub avatar Jul 10 '16 22:07 stephentoub

@stephentoub do you have VS Update 3 installed?

ericstj avatar Jul 11 '16 18:07 ericstj

do you have VS Update 3 installed?

Yes.

And I'm seeing the warnings both locally and in CI.

stephentoub avatar Jul 11 '16 18:07 stephentoub

e.g. you can see them in the latest Win8 run here: http://dotnet-ci.cloudapp.net/job/dotnet_corefx/job/master/job/windows_nt_debug/835/consoleText 456 warnings

stephentoub avatar Jul 11 '16 18:07 stephentoub

Yeah, I suspect most of these are from @karajas's test work. Just wanted to confirm you had the updated VS because using old targets can also cause these warnings.

ericstj avatar Jul 11 '16 19:07 ericstj

Working on resolving this, updating the TestSuite package to use the RTM version should resolve most of the resolution issues.

karajas avatar Jul 11 '16 19:07 karajas

@karajas Do you have a status update or ETA? Is your work likely to help with dotnet/coreclr#6022 as well? If there's another issue tracking this work more closely, please link it.

RussKeldorph avatar Jul 20 '16 23:07 RussKeldorph

@karajas I'm also curious of the status of this issue as having this many warnings in the build is not a good place to be as it hides other new warnings from users.

weshaggard avatar Jul 23 '16 08:07 weshaggard

@karajas Could we just suppress these somehow for now while we look for a proper fix (assuming suppression isn't the proper fix)? Presumably a local-to-coreclr/corefx suppression would be desirable as opposed to removing the warning from whatever tool is issuing it, but at this point any solution would be an improvement over the situation we are in now.

RussKeldorph avatar Jul 28 '16 16:07 RussKeldorph

This required a update to the xunit.netcore.extensions package so that it restores for netstandard1.1 (the minimum version it supports) instead of netstandard1.3, after moving the TestSuite package to run on the xunit rtm beta. This is what was causing a large list of warnings of all the projects that depended on this package to build. Currently testing the fix, but I also need to verify that it does not get rid of some of the non-related warnings.

I am not sure suppression is a good solution, this was an actual issue of repackaging a nupkg.

karajas avatar Aug 01 '16 20:08 karajas

@karajas re-opened this until you can get this into corefx and we see CI with no-warnings.

weshaggard avatar Aug 04 '16 17:08 weshaggard

Sorry I didn't realize merging would close this issue. This is the tracking corefx change: https://github.com/dotnet/corefx/pull/10582

karajas avatar Aug 04 '16 17:08 karajas

More clean up: https://github.com/dotnet/corefx/pull/10605

karajas avatar Aug 05 '16 17:08 karajas

After getting dotnet/corefx#10605 merged, the only remaining warning for all OSes was

EXEC : warning : Test connection strings not defined! Tests cannot be run. [/mnt/resource/j/workspace/dotnet_corefx/master/centos7.1_debug_prtest/src/System.Data.SqlClient/tests/ManualTests/System.Data.SqlClient.ManualTesting.Tests.csproj]

karajas avatar Aug 05 '16 22:08 karajas

@saurabh500 can you speak to that warning?

weshaggard avatar Aug 11 '16 06:08 weshaggard

cc @corivera who made the change. We have tests which depend on an environment variable being defined. When the environment variable is not defined the test is skipped. The Attribute defined for this behavior is https://github.com/dotnet/corefx/blob/0532442d684e62fa26f4dc849da7f9f2acd1ea38/src/System.Data.SqlClient/tests/ManualTests/DataCommon/CheckConnStrSetupFactAttribute.cs

The PR for the behavior is https://github.com/dotnet/corefx/pull/9523

This allows our tests which need a Sql server to run, to be built by the CI and we can run them for better coverage locally by providing a working connection string in the environment.

saurabh500 avatar Aug 11 '16 18:08 saurabh500