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

Adding <GeneratePackageOnBuild>true</GeneratePackageOnBuild> causes build errors. #6123

Closed
loekd opened this issue Oct 31, 2017 · 2 comments
Closed
Assignees
Labels
Product:NuGetizer A 1st party alternative to pack

Comments

@loekd
Copy link

loekd commented Oct 31, 2017

Details about Problem

Adding <GeneratePackageOnBuild>true</GeneratePackageOnBuild> to the csproj file causes many errors to be generated during build.

NuGet product used (NuGet.exe | VS UI | Package Manager Console | dotnet.exe):
NuGetizer 3000

NuGet version (x.x.x.xxx):
0.2.1

dotnet.exe --version (if appropriate):
2.0.2

VS version (if appropriate):
15.4.1

OS version (i.e. win10 v1607 (14393.321)):
10.0.15063

Worked before? If so, with which NuGet version:
unknown

Detailed repro steps so we can see the same problem

  1. Create a new solution with 2 class libraries, using netstandard 2.0. (shared1 and shared2)
  2. Add third project (packaging), that is intended to package the other 2.
    Reference the other 2 projects.
  3. install nuget package NuGet.Build.Packaging in all projects
  4. Build packaging project.
  5. Package is produced, together with lots of errors similar to;
    nuget.build.packaging\0.2.1\build\NuGet.Build.Packaging.targets(377,3): error NG0012: Duplicate package source files detected for target package file path 'lib\netstandard2.0\System.Xml.XPath.XDocument.dll'
    ...

Sample Project

demosln.zip

@emgarten emgarten added the Product:NuGetizer A 1st party alternative to pack label Oct 31, 2017
@emgarten
Copy link
Member

@kzu

@kzu
Copy link

kzu commented Dec 7, 2017

Fixed on NuGet/NuGet.Build.Packaging#151

@kzu kzu closed this as completed Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product:NuGetizer A 1st party alternative to pack
Projects
None yet
Development

No branches or pull requests

3 participants