question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

optional ThisAssembly generation

See original GitHub issue

Is it possible to (optionally) turn off the generation of the ThisAssembly class?

We had a situation where we hit an issue in combination with Fakes generation that took me a while to figure out. (this was eventually solved by adding <Remove TypeName="ThisAssembly"/> in the fakes config).

However, I am not sure if anyone has experienced issues where another library actually generates ThisAssembly content that would conflict with this library. In that case they would also benefit from a ‘switch’ to turn it off.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
AArnottcommented, Mar 30, 2023

Yes

0reactions
manigliacommented, Mar 30, 2023

I would like to use this feature to suppress ThisAssembly class generation, how can I do? If I enter this: <NBGV_EmitThisAssemblyClass>false</NBGV_EmitThisAssemblyClass> in my project, is that enough?

Read more comments on GitHub >

github_iconTop Results From Across the Web

devlooped/ThisAssembly: Exposes project and assembly ...
Exposes project and assembly level information as constants in the ThisAssembly class using source generators powered by Roslyn.
Read more >
How to generate code using Roslyn source ...
Generating ThisAssembly.Project. This generator results in a similar end-user experience: But the goal here is to allow arbitrary MSBuild ...
Read more >
How to fix "Referenced assembly does not have a strong ...
If you don't find the .snk-file: Open the project properties (of the project using the project with the "strong name" error), tab Signing....
Read more >
ASSEMBLYRESOURCE (Embed a managed resource)
The managed resource you want to embed in this assembly. ... Optional. The logical name for the resource; the name used to load...
Read more >
GitInfo 3.3.1
Access commit information from MSBuild and C#/F#/VB code, and infer SemVer from branch, tag or version file in Git repository.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found