Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to specify version number in ASP.NET Web Site

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?

like image 798
codeulike Avatar asked Oct 05 '09 16:10

codeulike


People also ask

How to identify ASP.NET version?

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 .

How to check version of ASP.NET Core?

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.


1 Answers

K Scott Allen has a post here, but personally i'd recommend you move to a Web Application Project.

like image 101
RichardOD Avatar answered Sep 28 '22 05:09

RichardOD