How to create csproj command line?

前端 未结 2 1622
悲哀的现实
悲哀的现实 2021-01-22 03:53

Is there any way to create a CS and WPF solution of Visual Studio templates from command line?

I wrote a C# and WPF code generator, and I want that my output be a C# sol

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-22 04:33

    Hmmm, what would be the use of it?

    I think you can take a look at the /Command switch for devenv:

    devenv.exe /Command np
    

    where "np" stands for "new project".

    Here is a list of the available commands: Predefined commands, try to play with it...

    But I think it would be much simpler to zip an empty solution and just copy it in your script file instead of asking VS to do it over and over again...

提交回复
热议问题