Closed stunney closed 8 years ago
Here are some tips while we are fixing the instructions (from @danliu)
Ok, I seem to have gotten a little further now. I'm getting an error during the TEST EXECUTION SUMMARY as shown below with a stack trace:
=== TEST EXECUTION SUMMARY === NuGet.Commands.Test Total: 11, Errors: 0, Failed: 0, Skipped: 0, Time: 10.940s info: Exec info: program: cmd info: commandline: /C "C:\Users\Stephen\Documents\GitHub\NuGet3\packages\KoreBuild\build\dnvm" use default -runtime Co reCLR && dnx . test info: workingdir: test\NuGet.Commands.Test Adding C:\Users\Stephen.dnx\runtimes\dnx-coreclr-win-x86.1.0.0-beta6-12032\bin to process PATH xUnit.net ASP.NET test runner (32-bit DNXCore 5.0) Copyright (C) 2015 Outercurve Foundation.
Discovering: NuGet.Commands.Test
Discovered: NuGet.Commands.Test
Starting: NuGet.Commands.Test
NuGet.Commands.Test.RestoreCommandTests.RestoreCommand_UnmatchedRefAndLibAssemblies [FAIL]
System.Threading.SemaphoreFullException : Adding the specified count to the semaphore would cause it to exceed its
maximum count.
Stack Trace:
at System.Threading.SemaphoreSlim.Release(Int32 releaseCount)
at System.Threading.SemaphoreSlim.Release()
C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.Common\ConcurrencyUtilities.cs(37,0): at NuGet.Common.Concur
rencyUtilities.1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()
C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.Protocol.Core.v3\RemoteRepositories\RemoteV2FindPackageByIdR
esource.cs(272,0): at NuGet.Protocol.Core.v3.RemoteRepositories.RemoteV2FindPackageByIdResourcce.1.GetResult() C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.Protocol.Core.v3\RemoteRepositories\PackageUtilities.cs(33,0 ): at NuGet.Protocol.Core.v3.RemoteRepositories.PackageUtilities.<OpenNuspecStreamFromNupkgAsync>d__1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()
C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.Protocol.Core.v3\RemoteRepositories\RemoteV2FindPackageByIdR
esource.cs(101,0): at NuGet.Protocol.Core.v3.RemoteRepositories.RemoteV2FindPackageByIdResourcce.<GetDependencyInfoAsync
d31.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.DependencyResolver\SourceRepositoryDependencyProvider.cs(68, 0): at NuGet.DependencyResolver.SourceRepositoryDependencyProvider.
d 9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.DependencyResolver.Core\Remote\RemoteDependencyWalker.cs(145 ,0): at NuGet.DependencyResolver.RemoteDependencyWalker.<FindLibraryEntry>d__6.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult() C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.DependencyResolver.Core\Remote\RemoteDependencyWalker.cs(36, 0): at NuGet.DependencyResolver.RemoteDependencyWalker.d3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.DependencyResolver.Core\Remote\RemoteDependencyWalker.cs(93, 0): at NuGet.DependencyResolver.RemoteDependencyWalker. d 3.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.Commands\RestoreCommand.cs(503,0): at NuGet.Commands.Restore Command.<WalkDependencies>d__13.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult() C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.Commands\RestoreCommand.cs(148,0): at NuGet.Commands.Restore Command.d5.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.Commands\RestoreCommand.cs(50,0): at NuGet.Commands.RestoreC ommand. d 4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() RestoreCommandTests.cs(376,0): at NuGet.Commands.Test.RestoreCommandTests.<RestoreCommand_UnmatchedRefAndLibAss emblies>d__9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) Finished: NuGet.Commands.Test
=== TEST EXECUTION SUMMARY ===
NuGet.Commands.Test Total: 11, Errors: 0, Failed: 1, Skipped: 0, Time: 4.965s
warn: Exit code 1 from cmd
verbose: Stack trace:
at View0ec397bbce304381b8b1701f06f96cb8.K(String command, String workingdir, String dnvmUse) in c:\Users\Stephen\AppD
ata\Local\Temp\23d48bd6cf18416f9a50b099fad01a1b-1.cs:line 1370
at View0ec397bbce304381b8b1701f06f96cb8.DnxTest(String projectFile, Boolean testParallel) in c:\Users\Stephen\AppData
\Local\Temp\23d48bd6cf18416f9a50b099fad01a1b-1.cs:line 437
at View0ec397bbce304381b8b1701f06f96cb8.1.ForEach(Action
1 action)
at View0ec397bbce304381b8b1701f06f96cb8.1.CallTarget(String name) at Sake.Engine.Builder.BuilderBase
1.StartingTarget(String name)
at View0ec397bbce304381b8b1701f06f96cb8.
- CategoryInfo : OperationStopped: (Build failed. P...s\GitHub\NuGet3:String) [], RuntimeException
- FullyQualifiedErrorId : Build failed. Project directory is C:\Users\Stephen\Documents\GitHub\NuGet3
Can you pull the latest code? We have made some changes in this code in the last hour or so (and still making) we currently see a single broken unit test. We are working on fixing it, but the call stack we see has a null reference exception.
Please let us know what it looks like after you try again.
Actually, this is a great catch. We are going to push in a change shortly to see if we can get this fixed
Thanks!
Re-ran clone-repo.ps1 sync at 8:42 Eastern Time. The script already points to the dev branch. No errors
Running build-nuget.ps1 afterwards produced the following unit test failure: xUnit.net ASP.NET test runner (32-bit DNX 4.5.1) Copyright (C) 2015 Outercurve Foundation.
Discovering: NuGet.Commands.Test
Discovered: NuGet.Commands.Test
Starting: NuGet.Commands.Test
NuGet.Commands.Test.RestoreCommandTests.RestoreCommandUnmatchedRefAndLibAssemblies [FAIL]
System.Threading.SemaphoreFullException : Adding the specified count to the semaphore would cause it to exceed its
maximum count.
Stack Trace:
at System.Threading.SemaphoreSlim.Release(Int32 releaseCount)
at System.Threading.SemaphoreSlim.Release()
C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.Common\ConcurrencyUtilities.cs(37,0): at NuGet.Common.Concur
rencyUtilities.1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()
C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.Protocol.Core.v3\RemoteRepositories\RemoteV2FindPackageByIdR
esource.cs(272,0): at NuGet.Protocol.Core.v3.RemoteRepositories.RemoteV2FindPackageByIdResourcce.1.GetResult() C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.DependencyResolver\SourceRepositoryDependencyProvider.cs(77, 0): at NuGet.DependencyResolver.SourceRepositoryDependencyProvider.<CopyToAsync>d__10.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.Packaging\PackageExtraction\NuGetPackageUtils.cs(58,0): at N uGet.Packaging.NuGetPackageUtils.<>c__DisplayClass1_0.<<InstallFromSourceAsync>b__0>d.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()
C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.Common\ConcurrencyUtilities.cs(33,0): at NuGet.Common.Concur
rencyUtilities.1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter
1.GetResult()
C:\Users\Stephen\Documents\GitHub\NuGet3\src\NuGet.Packaging\PackageExtraction\NuGetPackageUtils.cs(39,0): at N
uGet.Packaging.NuGetPackageUtils.
=== TEST EXECUTION SUMMARY ===
NuGet.Commands.Test Total: 11, Errors: 0, Failed: 1, Skipped: 0, Time: 11.102s
warn: Exit code 1 from cmd
verbose: Stack trace:
at Viewe4efc5008f1c4852b17328545e59c302.K(String command, String workingdir, String dnvmUse) in c:\Users\Stephen\AppD
ata\Local\Temp\9d83158d57c0497f9c00ac3eb736626c-1.cs:line 1277
at Viewe4efc5008f1c4852b17328545e59c302.DnxTest(String projectFile, Boolean testParallel) in c:\Users\Stephen\AppData
\Local\Temp\9d83158d57c0497f9c00ac3eb736626c-1.cs:line 433
at Viewe4efc5008f1c4852b17328545e59c302.1.ForEach(Action
1 action)
at Viewe4efc5008f1c4852b17328545e59c302.1.CallTarget(String name) at Sake.Engine.Builder.BuilderBase
1.StartingTarget(String name)
at Viewe4efc5008f1c4852b17328545e59c302.
- CategoryInfo : OperationStopped: (Build failed. P...s\GitHub\NuGet3:String) [], RuntimeException
- FullyQualifiedErrorId : Build failed. Project directory is C:\Users\Stephen\Documents\GitHub\NuGet3
Running build.cmd in NuGet.VisualStudeionExtension produced the following error: PS C:\Users\Stephen\Documents\GitHub\NuGet.VisualStudioExtension> .\build.cmd Microsoft (R) Build Engine version 14.0.22823.1 Copyright (C) Microsoft Corporation. All rights reserved.
Build started 6/15/2015 8:49:38 PM. Project "C:\Users\Stephen\Documents\GitHub\NuGet.VisualStudioExtension\Build\Build.proj" on node 1 (RestorePackages tar get(s)). RestorePackages: Restoring packages ... C:\Users\Stephen\Documents\GitHub\NuGet.VisualStudioExtension.nuget\nuget.exe install NuGet.CommandLine.Cmd -Exclude Version -Out C:\Users\Stephen\Documents\GitHub\NuGet.VisualStudioExtension\packages -NoCache -pre Unable to find package 'NuGet.CommandLine.Cmd'. C:\Users\Stephen\Documents\GitHub\NuGet.VisualStudioExtension\Build\Build.proj(146,9): error MSB3073: The command "C:\U sers\Stephen\Documents\GitHub\NuGet.VisualStudioExtension.nuget\nuget.exe install NuGet.CommandLine.Cmd -ExcludeVersio n -Out C:\Users\Stephen\Documents\GitHub\NuGet.VisualStudioExtension\packages -NoCache -pre " exited with code 1. Done Building Project "C:\Users\Stephen\Documents\GitHub\NuGet.VisualStudioExtension\Build\Build.proj" (RestorePackages target(s)) -- FAILED.
Build FAILED.
"C:\Users\Stephen\Documents\GitHub\NuGet.VisualStudioExtension\Build\Build.proj" (RestorePackages target) (1) -> (RestorePackages target) -> C:\Users\Stephen\Documents\GitHub\NuGet.VisualStudioExtension\Build\Build.proj(146,9): error MSB3073: The command "C: \Users\Stephen\Documents\GitHub\NuGet.VisualStudioExtension.nuget\nuget.exe install NuGet.CommandLine.Cmd -ExcludeVers ion -Out C:\Users\Stephen\Documents\GitHub\NuGet.VisualStudioExtension\packages -NoCache -pre " exited with code 1.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:02.41
Ok, I completely cleaned my workspace and re-did the git clone command and \NuGet.Home\nupkgs doesn't get created automatically by the script. That's an early error (I must have worked around that and forgotten).
Ok, now that I've completely cleaned my environment I'm back to to nupkgs folder issue. The script originally complained that \NuGet.Home\nupkgs didn't exist. Then the script creates \nupkgs as a sibbling to NuGet.Home. This folder is where all nupkg files are pushed to. . Adding this directory to my list of packages sources in VS2015 has no effect.
I created a directory symlink using mklink /D ./NuGet.Home/nupkgs ./nupkgs with elevated privileges to get this to work. (copying ALL the files also works, but I wanted to be sure that I wasn't missing a newer package that maybe a test had written out.
After that I get back to our notorious Test failure: NuGet.Commands.Test.RestoreCommandTests.RestoreCommand_UnmatchedRefAndLibAssemblies
Can you verify you have the following commit in your source tree? https://github.com/NuGet/NuGet3/commit/c8c4b85dfe130c0d58a00fc3dd41dbc72d6febb2
It appears as though I do NOT have this change. Strange how I didn't get this when I deleted everything and re-cloned less than an hour ago.
Just wiped it all clean again, and doing the clone-repos.ps1 and I seem to now be getting this specific commit in the sources on my disk.
cool, this commit was a fix to the test failure. I'm hoping that you are going to get past this issue now.
Ok, I've moved to another issue :(
C:\Users\Stephen\Documents\GitHub\NuGet.PackageManagement\packages\NuGet.MsBuild.Integration\build\Microsoft.NuGet.targets(58,5): error MSB4062: The "Microsoft.NuGet.Build.Tasks.ResolveNuGetPackageAssets" task could not be loaded from the assembly C:\Users\Stephen\Documents\GitHub\NuGet.PackageManagement\packages\NuGet.MsBuild.Integration\build\Microsoft.NuGet.Build.Tasks.dll. Could not load file or assembly 'Microsoft.NuGet.Build.Tasks, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) Confirm that the
C:\Users\Stephen\Documents\GitHub\nupkgs\NuGet.Versioning.3.1.0-beta.symbols.nupkg". Building! configuration: debug Build failed At C:\Users\Stephen\Documents\GitHub\NuGet.PackageManagement\pack.ps1:78 char:5
- CategoryInfo : OperationStopped: (Build failed:String) [], RuntimeException
- FullyQualifiedErrorId : Build failed
I think this is the same error in that I listed earlier.
I opened "C:\Users\Stephen\Documents\GitHub\NuGet.Home\NuGet.PackageManagement\packages\NuGet.MsBuild.Integration\build\Microsoft.NuGet.Build.Tasks.dll" in depends.x64 2.2.6000 and it is showing that this DLL is x86 compiled and ALL of its dependencies on my machine are x64.
I think this dll is not fully signed, and you need a strong name hijack to make it work. My machine is also x64 and I'm seeing no issues, but I do have a hijack.
I'm going to look into getting a fully signed version available on the feed.
CC // @jasonmalinowski can we share a fully signed build? Can/Should the task be AnyCPU?
Ok, I've used sn.exe -Vr Microsoft.NuGet.Build.Tasks.dll to add an exception entry into my registry to attempt to get around this. If this works a fully signed build should do as a long-term fix I think.
That didn't do it. Attempting to do sn -Vr Newtonsoft.Json as well in the same build folder (NuGet.PackageManagement\packages\NuGet.MsBuild.Integration\build)
Just a heads up that those are the only two assemblies that are strong (delayed or otherwise) signed in the folder
Directory: \NuGet.PackageManagement\packages\NuGet.MsBuild.Integration\build
Mode LastWriteTime Length Name
-a--- 6/15/2015 10:38 PM 37848 Microsoft.NuGet.Build.Tasks.dll -a--- 6/15/2015 10:38 PM 502272 Newtonsoft.Json.dll -a--- 6/15/2015 10:38 PM 28640 NuGet.ContentModel.dll -a--- 6/15/2015 10:38 PM 35296 NuGet.DependencyResolver.Core.dll -a--- 6/15/2015 10:38 PM 16352 NuGet.DependencyResolver.dll -a--- 6/15/2015 10:38 PM 64480 NuGet.Frameworks.dll -a--- 6/15/2015 10:38 PM 21472 NuGet.LibraryModel.dll -a--- 6/15/2015 10:38 PM 22496 NuGet.Packaging.Core.dll -a--- 6/15/2015 10:38 PM 21472 NuGet.Packaging.Core.Types.dll -a--- 6/15/2015 10:38 PM 55776 NuGet.Packaging.dll -a--- 6/15/2015 10:38 PM 40928 NuGet.ProjectModel.dll -a--- 6/15/2015 10:38 PM 15328 NuGet.Repositories.dll -a--- 6/15/2015 10:38 PM 36320 NuGet.Versioning.dll -a--- 6/15/2015 10:38 PM 233688 System.Collections.Immutable.dll
No dice. Any suggestions for the SN Hijacking?
Ah, I ran the x64 version of sn.exe. Had to run the x86 version. Getting a little further but have this error now:
Utility\BuildIntegratedProjectUtility.cs(38,78): error CS0117: 'SettingsUtility' does not contain a definition for 'GetGlobalPackagesFolder' [C:\Users\Stephen\Documents\GitHub\NuGet.PackageManagement\src\ProjectManagement\ProjectManagement.csproj] Utility\BuildIntegratedProjectUtility.cs(47,78): error CS0117: 'SettingsUtility' does not contain a definition for 'GetGlobalPackagesFolder' [C:\Users\Stephen\Documents\GitHub\NuGet.PackageManagement\src\ProjectManagement\ProjectManagement.csproj] Projects\PackagesConfigNuGetProject.cs(225,84): error CS1061: 'PackageReaderBase' does not contain a definition for 'GetDevelopmentDependency' and no extension method 'GetDevelopmentDependency' accepting a first argument of type 'PackageReaderBase' could be found (are you missing a using directive or an assembly reference?) [C:\Users\Stephen\Documents\GitHub\NuGet.PackageManagement\src\ProjectManagement\ProjectManagement.csproj] Projects\PackagesConfigNuGetProject.cs(232,60): error CS1061: 'NuspecReader' does not contain a definition for 'GetDevelopmentDependency' and no extension method 'GetDevelopmentDependency' accepting a first argument of type 'NuspecReader' could be found (are you missing a using directive or an assembly reference?) [C:\Users\Stephen\Documents\GitHub\NuGet.PackageManagement\src\ProjectManagement\ProjectManagement.csproj]
Looks like you still have some synching issues - https://github.com/NuGet/NuGet3/blob/dev/src/NuGet.Configuration/Utility/SettingsUtility.cs does have the right overloads.
I'm checking out for the day, I'll pick it up tomorrow again.
We can pick up again tomorrow. I'm looking at the source and see the right overloads. Could it be a stale reference perhaps?
Have a good night!
I have also hit the issue that @hubuk has hit in #783 here:
& : The term 'C:\Users\Stephen\Documents\GitHub\NuGet.PackageManagement\pack.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At C:\Users\Stephen\Documents\GitHub\Home\build-nuget.ps1:78 char:7
- CategoryInfo : ObjectNotFound: (C:\Users\Stephe...gement\pack.ps1:String) [], CommandNotFoundException
- FullyQualifiedErrorId : CommandNotFoundException
Build failed At C:\Users\Stephen\Documents\GitHub\Home\build-nuget.ps1:84 char:9
- CategoryInfo : OperationStopped: (Build failed:String) [], RuntimeException
- FullyQualifiedErrorId : Build failed
Has this been resolved yet? I'd like to get on with building and generating pull requests please :)
You should be able to build now. But please before submitting pull requests please file an issue an discuss the idea with the team.
Deepak is going to verify and resolve this week, which is why this is open.
Also note that we are not going to be taking prs into dev for a few more weeks until visual studio releases
Note - NuGet command line is building from https://github.com/nuget/nuget.packagemanagement
We fixed this issues please make sure you are using the Dev branch in the Home repo and make sure to pull to get the update build script
Has the documentation been updated on the Home web page? I still cannot build from a fresh command line sync right now.
Thanks for the feedback, can you sync again and run the build script with the following: .\Home\build-nuget.ps1 -CleanCache The clean cache will make sure all the cache packages get deleted
@yishaigalatzer @MeniZalzman I just joined the party and it looks like this is still not fixed.
Build failed At D:\src\NuGet.PackageManagement\pack.ps1:80 char:5
- throw "Build failed"
- CategoryInfo : OperationStopped: (Build failed:String) [], RuntimeException - FullyQualifiedErrorId : Build failed
Last info log before the build crashes
Generating MSBuild file D:\src\NuGet.PackageManagement\test\NuGet.CommandLine.Test**NuGet.CommandLine.Test.csproj.nuget.targets. Generating MSBuild file D:\src\NuGet.PackageManagement\test\NuGet.CommandLine.Test\NuGet.CommandLine.Test.csproj.nuget.props**.
This is the error
D:\src\NuGet.PackageManagement\packages\NuGet.MsBuild.Integration\build\Microsoft.NuGet.targets(58,5): error MSB4062: The "Microsoft.NuGet.Build.Tasks.ResolveNuGetPackageAssets" task could not be loaded from the assembly D:\src\NuGet.PackageManagement\packages\NuGet.MsBuild.Integration\build\Microsoft.NuGet.Build.Tasks.dll. Could not load file or assembly 'Microsoft.NuGet.Build.Tasks, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) Confirm that the
declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [D:\src\NuGet.PackageManagement\src\ProjectManagement\ProjectManagement.csproj]
Hey Steven we are in another change mode. The home build was failing in various cases and we are moving to a simpler model.
We will document in details but here is the jist:
Pre requisites: Vs 2015 with window 10 tools, visual studio SDK and ASP.net 5 beta7
Clone nuget.client, use the dev branch Run Build.ps1
You will see two solutions Core and clients
The first builds xproj projects and generates nuget packages, the second generates the vsix and nuget.exe
To debug the vsix you will need to uninstall nuget from your visual studio.
You also want to uncheck the jit option in debugging, otherwise it gets optimized too much for useful debugging.
Last keep in mind that we are still making changes and haven't announced it publicly. So you might find rough edges. It should be better than what we have in the home at the moment.
From: Steven Liekensmailto:notifications@github.com Sent: 10/4/2015 3:49 AM To: NuGet/Homemailto:Home@noreply.github.com Cc: Yishai Galatzermailto:yigalatz@microsoft.com Subject: Re: [Home] [DOCS] Issues building NuGet from Home page instructions (#787)
@yishaigalatzerhttps://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fyishaigalatzer&data=01%7c01%7cyigalatz%40microsoft.com%7c90b8b2d44eba496fc25f08d2cca97116%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=50UafuwePhe8bpdSiq6SWljDS8qhUnvh6iqhXOqXJwY%3d I just joined the party and it looks like this is still not fixed.
Build failed At D:\src\NuGet.PackageManagement\pack.ps1:80 char:5
- CategoryInfo : OperationStopped: (Build failed:String) [], RuntimeException
- FullyQualifiedErrorId : Build failed
Last info log before the build crashes
Generating MSBuild file D:\src\NuGet.PackageManagement\test\NuGet.CommandLine.Test\NuGet.CommandLine.Test.csproj.nuget.targets. Generating MSBuild file D:\src\NuGet.PackageManagement\test\NuGet.CommandLine.Test\NuGet.CommandLine.Test.csproj.nuget.props.
This is the error
D:\src\NuGet.PackageManagement\packages\NuGet.MsBuild.Integration\build\Microsoft.NuGet.targets(58,5): error MSB4062: The "Microsoft.NuGet.Build.Tasks.ResolveNuGetPackageAssets" task could not be loaded from the assembly D:\src\NuGet.PackageManagement\packages\NuGet.MsBuild.Integration\build\Microsoft.NuGet.Build.Tasks.dll. Could not load file or assembly 'Microsoft.NuGet.Build.Tasks, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) Confirm that the declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [D:\src\NuGet.PackageManagement\src\ProjectManagement\ProjectManagement.csproj]
— Reply to this email directly or view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3a%2f%2fgithub.com%2fNuGet%2fHome%2fissues%2f787%23issuecomment-145336394&data=01%7c01%7cyigalatz%40microsoft.com%7c90b8b2d44eba496fc25f08d2cca97116%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=ohsefEhnBtnIJsgBJOSLT5xgeeAsYKuncY7yAIdcgw4%3d.
Moved from: https://github.com/NuGet/NuGetGallery/issues/2539
My first hurdle was that I needed to add C:\Users\Stephen\Documents\GitHub\NuGet.Home\nupkgs as a local nuget repo so that NuGet.CommandLine.Cmd (beta 3.1.0) et al would install after all tests were completed.
I have gotten MUCH further in the compilation however now I am running into the following error
C:\Users\Stephen\Documents\GitHub\NuGet.Home\NuGet.PackageManagement\packages\NuGet.MsBuild.Integration\build\Microsoft .NuGet.targets(58,5): error MSB4062: The "Microsoft.NuGet.Build.Tasks.ResolveNuGetPackageAssets" task could not be load ed from the assembly C:\Users\Stephen\Documents\GitHub\NuGet.Home\NuGet.PackageManagement\packages\NuGet.MsBuild.Integr ation\build\Microsoft.NuGet.Build.Tasks.dll. Could not load file or assembly 'Microsoft.NuGet.Build.Tasks, Version=14.0 .0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Strong name validation failed. (Exc eption from HRESULT: 0x8013141A) Confirm that the declaration is correct, that the assembly and all its dep endencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask. [C: \Users\Stephen\Documents\GitHub\NuGet.Home\NuGet.PackageManagement\src\ProjectManagement\ProjectManagement.csproj] Build failed At C:\Users\Stephen\Documents\GitHub\NuGet.Home\NuGet.PackageManagement\pack.ps1:78 char:5
throw "Build failed"