Comments (3)
I think that 3.0.x is ignoring the ThisAssemblyNamespace property, which allowed you to set a distinct namespace for each project in previous versions. For instance a common solution was adding
<ThisAssemblyNamespace>$(RootNamespace)</ThisAssemblyNamespace>
to Directory.Build.targets.
Without that property, all ThisAssembly classes go into the global namespace. If you are also using the InternalsVisibleTo attribute, then you get collisions that break the build as you are seeing.
Until it is fixed, you will need to either remove the [InternalsVisibleTo] attribute, which will probably break stuff, since it will be there for a reason, or stick with 2.3.0
from gitinfo.
Good idea @rwg0
By adding [InternalsVisibleToAttribute] I still wasnt able to produce the error in my minimal sample but when I removed the attribute from my real project It successfully compiles with 3.0.4 as well.
from gitinfo.
Yes, this is a missing feature in 3.x. Pending implementation on ThisAssembly at devlooped/ThisAssembly#211
from gitinfo.
Related Issues (20)
- The name 'IsDirtyString' does not exist in the current context
- IsDirty always false
- IsDirty is no more constant HOT 2
- Linux compatibility issues? HOT 4
- Privacy about SponsorLink with GitInfo HOT 5
- parse('')" cannot be evaluated. version string portion was too short or too long
- Build Date HOT 3
- LangVersion latest and using 11.0 constants HOT 4
- ThisAssembly.Git.Commits returns an incorrect value for .NET 6 app HOT 2
- New tag without version drop semver to zeros HOT 1
- Weird race condition with targets HOT 2
- Projects don't rebuild after committing HOT 2
- SetGitExe doesn't recognize VS Git locations HOT 4
- GetInfo 3.3.3 fails like #273 ('ThisAssembly.Git' is inaccessible...) on non-SDK style .csproj, 2.3.0 works fine
- Can not find all git info when on branch with '.' in the name HOT 3
- Git.Branch always gives [HEAD] for detached HEAD commit. HOT 3
- Update to 3.3.4 via Nuget crashes HOT 1
- `ThisAssembly.Git.IsDirty` is included when `GitThisAssembly` is false HOT 1
- Using GitInfo with Ncrunch HOT 1
- ThisAssembly is unavailable (security level) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitinfo.