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

<ProjectGuid> ignored ? #5576

Closed
goswinr opened this issue Oct 11, 2019 · 1 comment
Closed

<ProjectGuid> ignored ? #5576

goswinr opened this issue Oct 11, 2019 · 1 comment

Comments

@goswinr
Copy link

goswinr commented Oct 11, 2019

I undestand that a <ProjectGuid> is no longer needed or desired.
But it seems that even if it is present it is silently ignored. Is that intended?
Where would I look for the official documentation of this behavior?
I need to have a Guid in my dll in order to load it as a plugin into another App.
I had to look at the IL to see that the Guid is missing. I got it back via an AssemblyInfo File.

@drewnoakes
Copy link
Member

The [assembly: Guid(...)] attribute determines an assembly's GUID.

In .NET Framework, the project GUID was synchronised between .sln, .csproj and AssemblyInfo.cs.

In SDK-style projects, the project GUID only exists in the .sln file. Looking at the generated obj\Debug\netstandard2.0\MyProject.AssemblyInfo.cs will show there is not [assembly: Guid] attribute for the assembly. Each time you build your project, a different Guid will be used. If you require a specific Guid, you must add the attribute yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants