Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Is it possible to read project.json data?

$
0
0

The

project.json
file that contains a `version' field. I want to be able to read this so when I log bugs I can log the version that caused it. I have done some google searches but all I find is information on what the new file is for and now to use it to add dependences. I was thinking I could use NewtonSoft to deserialize it but that requires I know the exact location of the file on every deployment, which I wont.

Is there some built in method to read from the project.json file to get the version number? If this is not possible what would be the best method to track the version number and allow access to it as needed from controller methods?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>