473,396 Members | 2,052 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Compiled file properties

Hi!

I'm using csc to compile my *.cs classes (for asp.net)

How do I add things like version No, Description and Copyright to the file?
Nov 15 '05 #1
8 1410
They are compiled in as resources I believe. To do this you need to create a
..resx file, using either a few lines of C# code which is available on MSDN
that makes a command line utility, or a 3rd party component, I recommend the
former. You then use resgen.exe to compile this into a .resources file. The
csc.exe is then pointed at this in addition to the .cs file.

"Ivan Demkovitch" <a@b.c> wrote in message
news:us**************@TK2MSFTNGP09.phx.gbl...
Hi!

I'm using csc to compile my *.cs classes (for asp.net)

How do I add things like version No, Description and Copyright to the file?

Nov 15 '05 #2
In Visual Studio, these information is stored in AssemblyInfo.cs file. The file contains code like this

[assembly: AssemblyTitle("")
[assembly: AssemblyDescription("")
[assembly: AssemblyConfiguration("")
[assembly: AssemblyCompany("")
[assembly: AssemblyProduct("")
[assembly: AssemblyCopyright("")
[assembly: AssemblyTrademark("")
[assembly: AssemblyCulture("")]

I believe that you can put these lines in any source, just only keep one occurence for assembly
---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 15 '05 #3
Nope.
Doesn't work this way:
Get compiler error:
"The type or namespace name "AssemblyTitle" could not be found (are you
missing....)"

"boudino" <boudino@-NOSPAM-seznam.cz> wrote in message
news:uZ**************@TK2MSFTNGP10.phx.gbl...
In Visual Studio, these information is stored in AssemblyInfo.cs file. The file contains code like this:
[assembly: AssemblyTitle("")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

I believe that you can put these lines in any source, just only keep one occurence for assembly.

---
Posted using Wimdows.net NntpNews Component - Posted from .NET's Largest

Community Website: http://www.dotnetjunkies.com/newsgroups/
Nov 15 '05 #4
I couldn't find anything in MSDN.
Could you give me a link?

Thanks,
Ivan

"Bonj" <a@b.com> wrote in message
news:ug**************@TK2MSFTNGP12.phx.gbl...
They are compiled in as resources I believe. To do this you need to create a .resx file, using either a few lines of C# code which is available on MSDN
that makes a command line utility, or a 3rd party component, I recommend the former. You then use resgen.exe to compile this into a .resources file. The csc.exe is then pointed at this in addition to the .cs file.

"Ivan Demkovitch" <a@b.c> wrote in message
news:us**************@TK2MSFTNGP09.phx.gbl...
Hi!

I'm using csc to compile my *.cs classes (for asp.net)

How do I add things like version No, Description and Copyright to the

file?


Nov 15 '05 #5
You forgot to put these at the top of the file.

using System.Reflection;
using System.Runtime.CompilerServices;
Nov 16 '05 #6
You forgot to put these at the top of the file.

using System.Reflection;
using System.Runtime.CompilerServices;
Nov 16 '05 #7
You forgot to put these at the top of the file.

using System.Reflection;
using System.Runtime.CompilerServices;
Nov 16 '05 #8
You forgot to put these at the top of the file.

using System.Reflection;
using System.Runtime.CompilerServices;
Nov 16 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: LutherRevisited | last post by:
This may be a dumb question, but are there any practical advantages of compiling a python application to *.pyo, or *.pyc? I haven't noticed any difference in the performance of text *.py or a...
4
by: BH | last post by:
I'm working on several ASP.NET projects at the same time. I have a separate web server and each has its own solution folder on my local PC. The strange thing I noticed is that one of the...
6
by: Earl Teigrob | last post by:
I am writing an application that dynamically loads user controls at run time based on user options. I would like to give my users the ability to build their own user controls and add them to my...
12
by: Wardeaux | last post by:
All, Wanting to find a way to create web pages to add to my website without having to recompile the codebehind everytime I want to add a new one... Here's the deal: I have a web app that takes...
6
by: Sushil Prasad | last post by:
I am having problem in displaying the compiled help file. In asp.net app I have link button labeled help. On the users click of this button i do the respose.redirect to the url of the .chm file....
4
by: Edwin Knoppert | last post by:
I distribute an ASP.NET dll, i want to determine the file location during run-time. Is it possible?
11
by: cooltoriz | last post by:
Hello there, I just found that the compiled code won't hide the string variables so that I can see them by opening the execuable using Notepad. I have couple applications that have password...
12
by: nik | last post by:
Hi, I've compiled my application on my vista machine, and it won't run at all on my xp machine. In the windows error report I get Exception code; 0xe0434f4d. I searched for that exception, but...
1
by: dorandoran | last post by:
I created an MSI package and it works great. However, the source code aren't compiled. They show up row in the test web server. This is No No in our environment. Are there any steps that I am missing...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.