Sunday, April 29, 2018

Making an Windows alias for a dotnet core application

Hi,

I would like to make a persistent alias for a dotnet core dll on Windows.

I have a dotnet core application where I have run the 'dotnet publish' command. This has given me a set of dlls. I've copied these dlls into a subdirectory under 'C:\tools\App' and now I would like to make an alias so I can run the application any time.

Within a unix environment I would add the following to my .bash_profile: alias app='dotnet C:\tools\App\Application.dll'

After doing some research it looks like you can use the doskey command however it only lasts for your current cmd session. What is the recommended approach when dealing with this kind of problem for dotnet core?

Thanks

Making an Windows alias for a dotnet core application Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team