-
Notifications
You must be signed in to change notification settings - Fork 253
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
nuget pack of xproj is defaulting to invalid target path #3060
Comments
Unsure if this is inconsistent with a csproj? |
@rrelyea Just a comment (as you changed the title): It's not only that it's defaulting to debug, but the folder where nuget tries to find the binaries is completely wrong. |
@CheloXL To workaround you can always use .nuspec file instead of .xproj and that will just work fine. Mean time we'll analyze it. |
@jainaashish nuget pack disposable.nuspec gives me "Value cannot be null or an empty string. Parameter name: value" |
You need to update the .nuspec file and give values to metadata like id, version, title, etc... |
Ah, ok. A nicer/clearer error message would be also great... |
yeah, it's in pipeline to update error/ warning messages. And about picking 'Debug' then default configuration with MsBuild is Debug so it picks that. You can also change it to Release by passing You can also use project.json to create nupkg just like .nuspec... you would just need to add Authors n Description details in project.json So there is no further action required here as of now. Let us know if you face any issue with .nuspec or project.json file. |
Excellent. Using project.json everything seems to work fine. Thanks! |
I have the same issue now - "Unable to find 'bin\Release{Project}\bin\Release'." or "Unable to find 'bin\Debug{Project}\bin\Debug'." for either configuration. My output is 'bin\Release\netstandard1.6'., the same as the original poster, but I am unable to create a project.json file as you suggested, as I'm using VS2017, do you know of another workaround? |
I have the same problem. I want to pack my project from my CI pipeline and don't want to add some overhead step for preparing .nuspec file. |
I managed to get it working by:
|
Using nuget.exe 3.5 beta 2.
On a simple .NETCore I run nuget spec, build the project, nuget pack, and I get
Attempting to build package from 'Disposable.xproj'. MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'. Unable to find '.\bin\Disposable\bin\Debug\'. Make sure the project has been built.
The path where the binaries are is 'bin\Release\netstandard1.6'. Not sure why is picking "Debug", as the project is on release build.
The text was updated successfully, but these errors were encountered: