Git Product home page Git Product logo

Comments (11)

ciwchris avatar ciwchris commented on August 25, 2024

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.

sayedihashimi avatar sayedihashimi commented on August 25, 2024

@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.

shmuelie avatar shmuelie commented on August 25, 2024

I'm liking @sayedihashimi 's idea about having a --fx- flag.

from generator-csharp.

sayedihashimi avatar sayedihashimi commented on August 25, 2024

I created #14. I'm supportive of it.

from generator-csharp.

ciwchris avatar ciwchris commented on August 25, 2024

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.

shmuelie avatar shmuelie commented on August 25, 2024

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.

davidfowl avatar davidfowl commented on August 25, 2024

@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.

shmuelie avatar shmuelie commented on August 25, 2024

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.

sayedihashimi avatar sayedihashimi commented on August 25, 2024

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.

ciwchris avatar ciwchris commented on August 25, 2024

Thank you for the clarification, I did not realize there was a new console application under aspnet, that was unexpected.

from generator-csharp.

davidfowl avatar davidfowl commented on August 25, 2024

We're in the process of refining it.

from generator-csharp.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.