So I have an ASP.NET 'Web Site' (as opposed to a Web Application) which has no AssemblyInfo.cs file or Bin folder or anything like that.
I want to have a way to specify an Assembly version number (e.g. 7.0.2.0). In a Web Application you would do this in an AssemblyInfo.cs file.
I've tried adding a Properties folder with an AssemblyInfo.cs file but I don't think its being picked up - because when I call Assembly.GetExecutingAssembly().GetName().Version.ToString() I get 0.0.0.0
So: What do I have to do to get AssemblyInfo.cs working OR how can I specify a version number?
Click Start > Control Panel > Administrative Tools > Internet Information Services (IIS) Manager. On the left pane, expand the entry for Local Computer and click Web Service Extensions. Check that there is an item called ASP.NET v2. 0.50727 and that its status reads Allowed .
To check which . NET Core Version is installed you can run one of the following commands on the command prompt. dotnet --version // Display . NET Core SDK version.
K Scott Allen has a post here, but personally i'd recommend you move to a Web Application Project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With