-
Notifications
You must be signed in to change notification settings - Fork 640
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
GitVersionTaskAssemblyInfo.g.cs Namespace GitVersionTask #540
Comments
Hrrm not sure, have not seen this before. The code which gets the namespace is https://github.com/GitTools/GitVersion/blob/master/src/GitVersionTask/AssemblyInfoBuilder/UpdateAssemblyInfo.cs#L94 @SimonCropp / @distantcam any thoughts? |
@jonathannaim Is this in an ASP.NET project? |
no. It's a C# WPF solution with several projects. |
@jonathannaim Hmm. Can you provide a project that has the issue? |
@distantcam unlikely unfortunately. The repo is is private I'm happy to try to investigate but unsure where to start. |
@distantcam . Quick update, I had a quick look. To generate the namespace you are taking the name of the project without the extension and it looks like that in some scenario msbuild uses a temp name during the build (I'm unsure why yet) see below:
|
@distantcam here is the answer to why sometimes the project name is the original one or a temporary one Let me know if you need extra info |
I think there are two options to fix this issue:
|
We changed this intentionally because it causes compile errors when you use InternalsVisibleTo |
@JakeGinnivan so, then the only option is to use |
Thanks!
|
Hello,
I've just upgraded to version 3.0.
Having each
GitVersionTaskAssemblyInfo
in the default assembly is very nice for us as some of our assemblies are usingInternalsVisibleTo
I'm unsure why but during some Rebuild All the namespace generated is completely random and causes a compilation error but if you build again then the issue is fixed and the correct namespace appears
Are you facing the same issue?
Example of a generated namespace:
The text was updated successfully, but these errors were encountered: