wcf icon indicating copy to clipboard operation
wcf copied to clipboard

Documentation missing

Open Montago opened this issue 3 years ago • 1 comments

The CLI has a "-help" feature and this Repo has >some< documentation .. but overall I'm missing documentation

  • What are the accepted inputs of --TargetFramework ? is it .NET6, NET6, 6, Framework472, netframework etc .. a complete list would be very useful.

  • What are the accepted input of --outputFile .. should i give a complete path or just a filename ?

error NETSDK1136: The target platform must be set to Windows (usually by including '-windows' in the TargetFramework property) but if i add "windows" as --targetFramework it fails ? is there a syntax for --targetFramework somewhere ?

  • When supplying --outputDir and --outputFile i get this error : The filename, directory name, or volume label syntax is incorrect. Changing any of them doesn't fix anything and the error still comes.

Montago avatar Aug 20 '22 09:08 Montago

Hi @Montago,

  • framework name listed as valid style of .NET Core, .NET Standard and .NET Framework TFMs at https://docs.microsoft.com/en-us/dotnet/standard/frameworks#supported-target-frameworks should apply for the tool option --TargetFramework.
  • for --outputFile option, the tool accepts both filename (treated as relative path to current dir) and complete file path.
  • if supplying both --outputDir and --outputFile , you need to make sure the given outputFile doesn't conflict with outputDir, for confliciton I mean situation such as specify outputDir to D:\TestDir and outputFile as C:\Dir\serviceRef.cs at the same time.
  • regarding the error NETSDK1136 you mentioned, I can't repro it, do you have specific repro steps I can follow for further investigation? Thank you.

imcarolwang avatar Aug 31 '22 08:08 imcarolwang