Comments (4)
Any chance you could try the latest 3.0.0 beta, which switches to a far better, source generator-based approach for C# when you're not customizing the namespace?
from gitinfo.
Also, could you check the generated file at the top? The template contains:
// <auto-generated />
#define $NamespaceDefine$
#pragma warning disable 0436
#if LOCALNAMESPACE
namespace _RootNamespace_
{
...
The replacement for $NamespaceDefine$
is:
<_ThisAssemblyContent Condition="'$(ThisAssemblyNamespace)' != ''">$(_ThisAssemblyContent.Replace('$NamespaceDefine$', 'LOCALNAMESPACE'))</_ThisAssemblyContent>
<_ThisAssemblyContent Condition="'$(ThisAssemblyNamespace)' == ''">$(_ThisAssemblyContent.Replace('$NamespaceDefine$', 'GLOBALNAMESPACE'))</_ThisAssemblyContent>
Therefore, if ThisAssemblyNamespace
where empty, it would cause the define to not contain the LOCALNAMESPACE
value required for the namespace ... {
to be considered by the compiler.
So, even if we do have an unconditional replace with the property value with:
<_ThisAssemblyContent>$(_ThisAssemblyContent.Replace('_RootNamespace_', '$(ThisAssemblyNamespace)'))</_ThisAssemblyContent>
The Define
should take care of the conditional compilation as needed 🤔
from gitinfo.
Perhaps a binlog + wrong .cs when it fails would help troubleshoot?
from gitinfo.
Closing for now due to inaction. Please reopen if you can provide a binlog or of this still fails on the latest version.
Thanks!
from gitinfo.
Related Issues (20)
- Migration from v2 -> v3 HOT 6
- V3 IsDirty is a string HOT 2
- Branch Names with '/' generate invalid versions HOT 1
- CSC : error SL01: SponsorLink has been incorrectly configured HOT 5
- ThisAssemblyNamespace is ignored when updating from 2.3.0 to 3.0.4 HOT 3
- THIS001 warning on F# project HOT 3
- Update to version 3.x breaks Avalonia projects HOT 2
- SemVer version does not seem to align with GitVersion/GitFlow? HOT 1
- Version 3.0.5: Error 'ThisAssembly.Git' is inaccessible due to its protection level HOT 24
- 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
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.