runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Difficulties Building System.Data.SqlClient v4.5.1

Open crntn opened this issue 8 years ago • 7 comments

Hi,

I have been trying to build locally and in appveyor the nuget System.Data.SqlClient at version 4.5.1 (7ee84596d92e178bce54c986df31ccc52479e772) and my process keeps on failing. I found other issues reporting similar problems but it seems the build process has changed quite a bit between versions.

The command I'm building with is

build.cmd -release -BuildTests=False 

And the failure is :

  C:\projects\corefx\packages\Microsoft.TargetingPack.NETFramework.v4.6.1\1.0.1\lib\net461\XamlBuildTask.dll (Microsoft.TargetingPack.NETFramework.v4.6.1.1.0.1) -> C:\projects\corefx\bin\AnyOS.AnyCPU.Release\netfx\netcoreapp\XamlBuildTask.dll
  C:\projects\corefx\packages\Microsoft.TargetingPack.NETFramework.v4.6.1\1.0.1\lib\net461\mscorlib.dll (Microsoft.TargetingPack.NETFramework.v4.6.1.1.0.1) -> C:\projects\corefx\bin\AnyOS.AnyCPU.Release\netfx\netcoreapp\mscorlib.dll
  C:\projects\corefx\packages\Microsoft.TargetingPack.NETFramework.v4.6.1\1.0.1\lib\net461\sysglobl.dll (Microsoft.TargetingPack.NETFramework.v4.6.1.1.0.1) -> C:\projects\corefx\bin\AnyOS.AnyCPU.Release\netfx\netcoreapp\sysglobl.dll
C:\projects\corefx\Tools\depProj.targets(83,5): error : Error no assets were resolved from NuGet packages. [C:\projects\corefx\external\runtime\runtime.depproj]
Build FAILED.
C:\projects\corefx\Tools\depProj.targets(83,5): error : Error no assets were resolved from NuGet packages. [C:\projects\corefx\external\runtime\runtime.depproj]
    0 Warning(s)
    1 Error(s)
Time Elapsed 00:02:10.39
Command execution failed with exit code 1.
Command exited with code 1

You can find the logs there : https://ci.appveyor.com/project/crntn/corefx/builds/20512331 Does this ring a bell to anybody ?

Thanks a lot !

crntn avatar Nov 23 '18 15:11 crntn

Make sure you've done a build -allconfigurations first or some dependencies for the build process won't have been downloaded. In general when the build gets into a weird state a clean -all and then build all configs will get it into a sensible state again.

Wraith2 avatar Nov 23 '18 16:11 Wraith2

Gonna try that ! thanks ! Since I build in appveyor my environment is always fresh.

crntn avatar Nov 23 '18 16:11 crntn

Ah, you mentioned you couldn't get it working locally either.

Wraith2 avatar Nov 23 '18 16:11 Wraith2

I tried this and it failed earlier : https://ci.appveyor.com/project/crntn/corefx/builds/20514615

   Creating library C:/projects/corefx/bin/obj/Windows_NT.x64.Debug/native_aot/clrcompression/Debug/clrcompression.lib and object C:/projects/corefx/bin/obj/Windows_NT.x64.Debug/native_aot/clrcompression/Debug/clrcompression.exp
  clrcompression.vcxproj -> C:\projects\corefx\bin\obj\Windows_NT.x64.Debug\native_aot\clrcompression\Debug\clrcompression.dll
  clrcompression.vcxproj -> C:/projects/corefx/bin/obj/Windows_NT.x64.Debug/native_aot/clrcompression/Debug/clrcompression.pdb (Full PDB)
  Building Custom Rule C:/projects/corefx/src/Native/Windows/CMakeLists.txt
  CMake does not need to re-run because C:/projects/corefx/bin/obj/Windows_NT.x64.Debug/native_aot/CMakeFiles/generate.stamp is up-to-date.
  -- Install configuration: "Debug"
  -- Installing: C:/projects/corefx/bin/Windows_NT.x64.Debug/native_aot/./clrcompression.lib
  -- Installing: C:/projects/corefx/bin/Windows_NT.x64.Debug/native_aot/./clrcompression.dll
  -- Installing: C:/projects/corefx/bin/Windows_NT.x64.Debug/native_aot/./clrcompression.pdb
Command execution succeeded.
Done building Native AOT components
Command execution succeeded.
Tools are already initialized.
Running: C:\projects\corefx\Tools\msbuild.cmd /nologo /verbosity:minimal /clp:Summary /maxcpucount /nodeReuse:false /l:BinClashLogger,Tools\net46\Microsoft.DotNet.Build.Tasks.dll;LogFile=binclash.log /p:ConfigurationGroup=Debug /p:BuildAllConfigurations=true /p:BuildPackages=true  /flp:v=normal  /flp2:warningsonly;logfile=msbuild.wrn  /flp3:errorsonly;logfile=msbuild.err 
C:\projects\corefx\Tools\depProj.targets(83,5): error : Error no assets were resolved from NuGet packages. [C:\projects\corefx\external\netcoreapp\netcoreapp.depproj]
C:\projects\corefx\Tools\depProj.targets(83,5): error : Error no assets were resolved from NuGet packages. [C:\projects\corefx\external\netcoreapp\netcoreapp.depproj]
Command execution failed with exit code 1.
Command exited with code 1

crntn avatar Nov 23 '18 17:11 crntn

It looks like it has failed to restore the packages needed for the build that should be placed in \external, why I couldn't tell you.

Wraith2 avatar Nov 23 '18 17:11 Wraith2

Did you succeed in building?

Wraith2 avatar Nov 29 '18 11:11 Wraith2

Hey @crntn, are you still having issues with this?

wtgodbe avatar Feb 22 '19 22:02 wtgodbe