I am trying to create a build process using MSBuild that will build my
multiple projects all with the same AssemblyVersion and
AssemblyFileVer sion. I have tried using the AssemblyInfo task from the
community tasks projects ( http://msbuildtasks.tigris.org/) and the
AssemblyInfoTas k from the MSBuild blog
( http://www.gotdotnet.com/codegallery...-16107919f93e).
My scenario is this: I have several project files, each within their
own sub-directory. I want to have one MSBuild file that I can set the
version number manually and build. I want all the output DLLS to have
that version number and be placed into a single folder.
This has to be common in the community, but cannot find any
good/working examples.
Any help would be greatly appreciated.
Jonathan
On a side note, if anyone can show me how to get some property values
from the main MSBuild file, and some property values from each
individual project file, that would be great...but not my main concern. 2 8150
Jonathan Kacprowicz a écrit :
I am trying to create a build process using MSBuild that will build my
multiple projects all with the same AssemblyVersion and
AssemblyFileVer sion. I have tried using the AssemblyInfo task from the
community tasks projects (http://msbuildtasks.tigris.org/) and the
AssemblyInfoTas k from the MSBuild blog
(http://www.gotdotnet.com/codegallery...-16107919f93e).
My scenario is this: I have several project files, each within their
own sub-directory. I want to have one MSBuild file that I can set the
version number manually and build. I want all the output DLLS to have
that version number and be placed into a single folder.
This has to be common in the community, but cannot find any
good/working examples.
Any help would be greatly appreciated.
Jonathan
On a side note, if anyone can show me how to get some property values
from the main MSBuild file, and some property values from each
individual project file, that would be great...but not my main concern.
Hi,
I am not a MSBuild specialist, but I think that VS2005 generates
MSBuild project files, right ? In VS, you can add an existing file to a
project the usual way, or as a link which is a good way to share the
same code across projects (like parts of AssemblyInfo attributes...).
It looks like this in one of my projects :
<Compile Include="..\Ver sion.cs">
<Link>Propertie s\Version.cs</Link>
</Compile>
Hope this helps.
Mathieu
Thank you so much. Such a simple answer. I can't believe I didn't
think of it.
JK
Mathieu Cartoixa wrote:
Jonathan Kacprowicz a écrit :
I am trying to create a build process using MSBuild that will build my
multiple projects all with the same AssemblyVersion and
AssemblyFileVer sion. I have tried using the AssemblyInfo task from the
community tasks projects (http://msbuildtasks.tigris.org/) and the
AssemblyInfoTas k from the MSBuild blog
(http://www.gotdotnet.com/codegallery...-16107919f93e).
My scenario is this: I have several project files, each within their
own sub-directory. I want to have one MSBuild file that I can set the
version number manually and build. I want all the output DLLS to have
that version number and be placed into a single folder.
This has to be common in the community, but cannot find any
good/working examples.
Any help would be greatly appreciated.
Jonathan
On a side note, if anyone can show me how to get some property values
from the main MSBuild file, and some property values from each
individual project file, that would be great...but not my main concern.
Hi,
I am not a MSBuild specialist, but I think that VS2005 generates
MSBuild project files, right ? In VS, you can add an existing file to a
project the usual way, or as a link which is a good way to share the
same code across projects (like parts of AssemblyInfo attributes...).
It looks like this in one of my projects :
<Compile Include="..\Ver sion.cs">
<Link>Propertie s\Version.cs</Link>
</Compile>
Hope this helps.
Mathieu
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Harry Whitehouse |
last post by:
I'm developing a small class which will be used in a number of distinct C#
projects. This small class is undergoing constant change/refinement as I
try to employ it in the different projects.
I'm trying to maintain a *single* copy of the CS file that can be used in
the multiple .NET projects. But I'm observing that when you add a CS file
to a given .NET project, subsequent modifications to that file are only
saved in the current...
|
by: Jody Gelowitz |
last post by:
Within ASP.NET, is it possible to use a single .vb file and have it shared
(or accessed) between multiple projects without having that file being
copied to each project folder?
ie.
C:\Projects\MyProject1 (project 1)
C:\Projects\MyProject2 (project 2)
C:\Projects\CommonFiles\MyCommonFile.vb (common file directly accessed
and compiled from Project1 and Project2)
|
by: Samuel L Matzen |
last post by:
Hi,
I am trying to develop with multiple projects in a single solution. The
many of these projects create .dlls that are used by other projects. When I
reference a .dll I reference it in the bin directory of the project creating
it.
The problem I am having is that Visual Studio keeps throwing a whole bunch
of error messages indicateing it can't overrite other version of dlls and
that one object can't be converted to another object...
|
by: Brian Henry |
last post by:
is there any way to make an assembly file accessable across multiple
projects (we have over 20 that need the info all to be the same at build
version, title, desc, copyright,etc) i saw MS did this with the quick starts
with what looks like to be a short cut to a file in each project... is there
any way to have the assembly as the actuall file in one project and all the
others reference it? this is also a source controled solution too by the...
|
by: dominique |
last post by:
Hi,
In windows app, i have a solution with multiple projects.
If a project must "see" types (class, modules, structures, delegates,
enum) of an other project, we must add reference to this project (in
solution explorer, right clic on add reference, then third tab Add
project).
Now my question :
| |
by: Richard Lewis Haggard |
last post by:
I'm having a problem with what appears to be some sort of confusion with
references. I have a single solution with a dozen projects which has been
working quite nicely for a while. The references between projects in the
solution were established through project references, not by browsing to an
assembly DLL. All of the projects are strongly named and use key files. Each
project's AssemblyInfo.cs specifies the assembly version, where the...
|
by: Paul Cheetham |
last post by:
Hi,
I have two projects where I want to use the same source file in each
project.
If I add the file to each project, then a local copy is made.
I want to be able to have a single source file used by both projects so
that I only have to change one file.
I am using compiler directives within the file, and so I can't just
build it into a DLL and do it that way, I really do need to make both
|
by: Lucvdv |
last post by:
In my assembly.vb files, I'm using the revision/build wildcard style:
<Assembly: AssemblyVersion("3.0.*")>
<Assembly: AssemblyFileVersion("3.0.*")>
This onkly seems to work in projects that were originally created under
VS.Net 2003. The proper version number is generated as expected, assembly
version and file version of the compiled executable are both
3.0.xxxx.yyyyy.
|
by: Zytan |
last post by:
In the Assembly Information, you can set the assembly version and the
file version. What is the difference between the two? The
documentation is not exactly helpful in this area.
I had the assembly version set to a unique number, and just left the
file version as 0.0.0.0. My program crashed on another computer, and
the windows error report stated: "AppVer: 0.0.0.0", so I am thinking
maybe the file version is more important (unless...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |