Comments (11)
Is it possible to detect or be able to specify the version of the .net framework being targeted and if it's .net 5 then use the new project structure? Or should a new generator be created for .net 5 projects?
from generator-csharp.
@ciwchris thanks for the reply.
VS telemetry tells us that most people pick the latest framework to target. Also it's easy to modify the target Fx after creating the project. You just edit the <TargetFramework>
element in the .csproj file.
That being said we could consider a --fx
switch which could set this. This is similar to the --gulp
option available in the asp.net 5 yo generators.
Thoughts?
from generator-csharp.
I'm liking @sayedihashimi 's idea about having a --fx-
flag.
from generator-csharp.
I created #14. I'm supportive of it.
from generator-csharp.
I was hoping to not use .csproj files and instead have projects created similar to the sample console app when using .net5. Could the default be no .csproj files but if an older version is specified using the --fx
flag then .csproj files would be used?
from generator-csharp.
Unless I'm misunderstanding something the new JSON based project files are only for ASP.NET, or are they for all .NET vNext?
from generator-csharp.
@ciwchris I like that idea 😄
@SamuelEnglard The new JSON based project files can be used to build any project type (build not run). It's a project system that supports cross compilation and producing nuget packages out of the box.
from generator-csharp.
So is JSON replacing *proj files? If so then clearly when targeting latest we should use it. If not we might need another flag, though I'd make the default JSON still for newest
from generator-csharp.
I was hoping to not use .csproj files and instead have projects created similar to the sample console app when using .net5.
As Fowler mentioned you would use generator-aspnet
in that case. I just posted a wiki on the goals of generator-aspnet
and how we are recommending for others to create related generators https://github.com/OmniSharp/generator-aspnet/wiki/goals-and-related-generators.
So is JSON replacing *proj files?
No (or at least not yet). If they do then we will adapt this generator as well as generator-aspnet to align with whatever Visual Studio ships.
from generator-csharp.
Thank you for the clarification, I did not realize there was a new console application under aspnet, that was unexpected.
from generator-csharp.
We're in the process of refining it.
from generator-csharp.
Related Issues (9)
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 generator-csharp.