Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dotnet tool ability to XMLtoMD proj #157

Merged
merged 10 commits into from
Apr 7, 2021
Merged

Conversation

BenjaminMichaelis
Copy link
Member

  • DragonFruit CLI tool added
  • pack and nupkg tool ability added

BenjaminMichaelis and others added 7 commits March 3, 2021 16:41
- upgraded from .netcore3.1 to .net5.0
- suppressed warning syslib0012
Will need to address https://docs.microsoft.com/en-us/dotnet/core/compatibility/syslib-warnings/syslib0012
Most likely by using Assembly.Location
- added XML nodes for ability to pack and distribute the application as a nupkg
.Net 5.0 upgrade will be coming in the future
@BenjaminMichaelis BenjaminMichaelis added the enhancement New feature or request label Mar 6, 2021
XMLtoMD/GuidelineXmlToMD/GuidelineXmlToMD.csproj Outdated Show resolved Hide resolved
XMLtoMD/GuidelineXmlToMD/MarkdownOut/MdWriter.cs Outdated Show resolved Hide resolved
XMLtoMD/GuidelineXmlToMD/MarkdownOut/MdWriter.cs Outdated Show resolved Hide resolved
/// <param name="i">The xml file to process when using the -m option</param>
/// <param name="o">The md file to create when using the -m option </param>
/// <param name="m">Manual Run - Use xmlFilePath and outputMDFilePath</param>
static void Main(string[] args, string xmlFileName, string i = "null", string o = "null", bool m = false)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You shouldn't need to take in the string args and instead just specify the parameters that you need.

This will likely require changing the invocation on the GitHub Action.
You can use FileInfo as the parameter type and it will properly parse it for you.

Suggested change
static void Main(string[] args, string xmlFileName, string i = "null", string o = "null", bool m = false)
static void Main(string xmlFileName, string i = "null", string o = "null", bool m = false)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed default args []

XMLtoMD/GuidelineXmlToMD/Program.cs Outdated Show resolved Hide resolved
XMLtoMD/GuidelineXmlToMD/Program.cs Outdated Show resolved Hide resolved
XMLtoMD/GuidelineXmlToMD/Program.cs Outdated Show resolved Hide resolved
XMLtoMD/GuidelineXmlToMD/Program.cs Outdated Show resolved Hide resolved
XMLtoMD/GuidelineXmlToMD/Program.cs Outdated Show resolved Hide resolved
twofingerrightclick and others added 2 commits March 10, 2021 15:29
Co-authored-by: Kevin B <Keboo@users.noreply.github.com>
Base automatically changed from master to main March 11, 2021 22:46
@BenjaminMichaelis
Copy link
Member Author

What's the status on this? @Keboo

@Keboo
Copy link
Member

Keboo commented Apr 7, 2021

Fixes #160
Fixes #159

@Keboo Keboo merged commit 9dd61df into main Apr 7, 2021
@Keboo Keboo deleted the xmltomd-DotNetToolnet3.1 branch April 7, 2021 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants