Comments (7)
I have tried adding <#@ assembly name="NetStandard" #>
and it seems to fix it at least for .NET Standard
from docopt.net.
I have initially tried to mitigate the problem by having the path correctly set in the NuGet install.ps1 script. The approach is brittle, but it provides some mitigation for the fresh package installs. Looking at this again, this is not supported anymore in VS 2017+ - I will dig a bit deeper.
from docopt.net.
I have tried adding
<#@ assembly name="NetStandard" #>
and it seems to fix it at least for .NET Standard
I wonder though how that'll sit with a non-SDK-style project that targets .NET Framework.
I do find what's being attempted with T4 is somewhat split & partial given that some code generation happens in the library:
docopt.net/src/DocoptNet/Pattern.cs
Lines 16 to 19 in 7a74df3
Perhaps it's time to look for a fresh approach to the problem? Perhaps something that's done via an MSBuild task? I don't have any proposal off the top of my head at the moment.
from docopt.net.
Yes I agree. I am a bit disconnected from the .net world. How popular is T4 nowadays?
from docopt.net.
How popular is T4 nowadays?
Can't speak for everyone, but I think it's fine if used in a limited way that's not connected to the IDE and works cross-platform via mono/t4. I think what people love about T4 is the quick inner dev loop with saving and seeing the generated code/text update almost immediately. I wish dotnet watch
could make up for that, but I think it's somewhat limited to web development scenarios for now. I don't have the cycles to explore the options with MS Build because I'd rather channel my energies on exploring the source generator method in PR #77. If I get lightbulb moment for T4 part or a replacement, I'll drop a PR (no promises).
from docopt.net.
Yes I would rather invest in the source code generator as well.
from docopt.net.
Closing since T4 support was removed in PR #136.
from docopt.net.
Related Issues (20)
- Sync PR builds not occurring during CI on AppVeyor
- Argument that is both boolean and string (git exec-path option) HOT 1
- Assembly version is 0.0.0.0 HOT 1
- Source generator fails when arguments classes are named the same but belong to different namespaces
- Source generator fails with arguments classes in separate files
- Nested class using `[DocoptArguments]` fails to build
- Make entire code base null-safe
- Leading dot in generated hint name when project has no namespace
- Bad example or bug in new parser implementation? HOT 2
- Add MatchAsync to `IParser<T>.IResult` HOT 2
- Reinstalling docopt.net
- Code style errors can break building of user project
- Feature Request: Description in summary comments HOT 2
- Docopt not parsing when running with 'dotnet run' HOT 3
- IsNullOrEmpty on a command throws System.NullReferenceException
- spaces in filenames HOT 3
- Upgrade to netstandard2.0 HOT 1
- run naval_fate HOT 2
- condition to properly build the project and have it work correctly HOT 8
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 docopt.net.