visual studio 2017 - Console App (.Net Standard) not listed -
i using visual studio 2017 , trying create "console app (.net standard)". no longer on list of available projects when "file -> new project..."
it there few minutes ago. disappeared after created "console app (.net core)" , deleted app because realized wanted standard app.
i deleted removing visual studio, going file system , deleting it.
i tried running installer , updating 2017 install. did not help.
how can "console app (.net standard)" available project type create?
[edit] have shutdown , restarted visual studio.
[edit] have attempted run devenv /installvstemplates
devenv command not found. found located here: c:\program files (x86)\microsoft visual studio 14.0\common7\ide
. preferred way call it? [add path or other way?]
[edit] ran this: "c:\program files (x86)\microsoft visual studio 14.0\common7\ide\devenv.exe" /installvstemplates
, got the operation not completed. requested operation requires elevation.
.
[edit] ran this: runas /user:administrator "c:\program files (x86)\microsoft visual studio 14.0\common7\ide\devenv.exe" /installvstemplates
, got runas
usage message.
[edit] ran command in powershell window administrator privilege , got this:
ps c:\windows\system32> 'c:\program files (x86)\microsoft visual studio 14.0\common7\ide\devenv' /installvstemplates @ line:1 char:75 + ... iles (x86)\microsoft visual studio 14.0\common7\ide\devenv' /installv ... + ~ must provide value expression following '/' operator. @ line:1 char:75 + ... \microsoft visual studio 14.0\common7\ide\devenv' /installvstemplates + ~~~~~~~~~~~~~~~~~~ unexpected token 'installvstemplates' in expression or statement. + categoryinfo : parsererror: (:) [], parentcontainserrorrecordexception + fullyqualifiederrorid : expectedvalueexpression
[edit] found out need run quoted command prefixed &. can run devenv.
[edit] decided needed "console app (.net standard)" after posting question: project type simple headless windows application
it doesn't make sense create .net standard console app.
you can think of .net standard interface in c#. .net standard interface, there's concrete implementations of in .net framework, .net core , other platforms. .net standard makes sense class libraries, console app needs run on specific concrete implementation.
thus, there no visual studio project template .net standard console apps. can create console app .net framework or .net core , consume .net standard class libraries.
Comments
Post a Comment