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

error CS0101 and error CS0579 #4

Closed
PhilippPaetzold opened this issue Sep 24, 2022 · 3 comments
Closed

error CS0101 and error CS0579 #4

PhilippPaetzold opened this issue Sep 24, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@PhilippPaetzold
Copy link

With the latest Visual Studio Community 2022 (64-Bit) Update to Version 17.3.4 I get the following erros when building my solution:

1>D:\_repos\test\WpfTestLibrary\VersionInfoGenerator\VersionInfoGenerator.VersionInfoGenerator\WpfTestLibrary.VersionInfo.cs(8,27,8,38): error CS0101: Der Namespace "WpfTestLibrary" enthält bereits eine Definition für "VersionInfo".
1>D:\_repos\test\WpfTestLibrary\VersionInfoGenerator\VersionInfoGenerator.VersionInfoGenerator\WpfTestLibrary.VersionInfo.cs(6,6,6,19): error CS0579: Doppeltes Attribut "GeneratedCode".
1>D:\_repos\test\WpfTestLibrary\VersionInfoGenerator\VersionInfoGenerator.VersionInfoGenerator\WpfTestLibrary.VersionInfo.cs(7,6,7,23): error CS0579: Doppeltes Attribut "CompilerGenerated".

The problem can be reproduced with the following minimal project:

test.zip

I have manually cleaned obj/bin-folders and did a rebuild and also tried the dotnet command line tools without success. When removing the line

<PackageReference Include="VersionInfoGenerator" Version="2.1.5" PrivateAssets="all" />

from WpfTestLibrary.csproj the test-app compiles and executes fine.

@notpeelz
Copy link
Owner

Can you check if downgrading to 2.1.3 fixes the issue?

@notpeelz notpeelz added the bug Something isn't working label Sep 24, 2022
@PhilippPaetzold
Copy link
Author

Yes that fixed the issue. I can compile the project just fine. Thank you.

@notpeelz
Copy link
Owner

Thanks for confirming. I'll push a fix soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants