I have created a Visual Studio Deployment Project for my application. We are a using subversion to manage version numbers and I've got versionInfo.cs file which contains the version number. I want to give the version number I have in my application (versionInfo.cs) to the Version Property of the setup project. I am not sure how to it... Do I need to create a custom action? Or what's the best way to do that.
Thank you!
As for me, setting version is a responsibility of build process. So, you don't need a custom action - it is a part of installation logic and runs at install time. Instead, teach your build engine to put correct version to your installation package (e.g. read it from VersionInfo.cs and put to vdproj file).
Finally I fixed the issue.
I've setup Cruise Control build server and added Nant script to change the version in the setup project.
Thanks,
Charith
Related
I'm using TeamCity Professional 9.0.2 (build 32195).
I installed the tcWebHooks plugin:
But I do not see any changes to the admin, and I cannot determine where to add web hooks to my build. I see no additional options in either the Project configuration or the Build configuration. Did I miss a step? From what I'm reading in the documentation, it should be a Project level setting with additions to the Project Home view.
This appears to have been an issue with the 0.9.27.61 version of tcWebHooks. I installed 0.9.18.165 and everything works as expected.
It's in a weird spot in TeamCity for some reason. You go under a Build Project, without going into Edit Project Settings.
EDIT: I'd also check the tcWebHooks blog for more info: https://netwolfuk.wordpress.com/category/teamcity/tcplugins/tcwebhooks/
I would like to create installer for Eclipse RCP application. What is the best way to do this?
It is possible?
Eclipse Platform Version: 3.6.1
In a plug-in project, create a product configuration.
Configure it. On the Dependencies tab, the "Add required plug-ins" button is your friend.
Build the product -- e.g., through the "Exporting" section on the Overview tab.
Once it's built, you can build an installer with a third-party install tool compatible with the target operating system/s.
More detail is provided in the Eclipse FAQ under "How do I create an Eclipse product?"
There are two solutions that I know should make the job of creating an installer easy:
EclipseNSIS - which is windows-only
Use Pulse OneInstall - which seems to be cross-platform.
I have not used either of the above, but have been researching them as well. Both should have wizards that guide your through the above.
In my CruiseControl instances, I have version controlled the ccnet.config file.
When I want to update CruiseControl, I run an "update config" job which fetches the config from version control.
In this manner, the very build process of a release is configuration managed.
I am wondering how to achieve these goals effectively under TeamCity.
I try to keep what ever CI I am using as light as possible and put as much of the running of the build into an msbuild or nant script including running tests, code coverage, etc.
The benefit of this is:
The build file is version controlled.
You can run the script in any environment.
Easier to move between CI environments.
Everyone becomes responsible for the build.
This has been introduced in TeamCity 9. Also answered in another post:
Version control (e.g. in TFS) build configuration for TeamCity - is it possible?
I've been wanting a way to source control TeamCity config for a long time. I ended up writing a Windows Service which monitors the configuration directory and commits changes to git.
The project is on GitHub: https://github.com/grenade/teamcity-config-monitor
You might try looking at the folders that are backed up prior to upgrade (or when restoring team city) as those represent the configurations and changes you've made since initial installation.
http://confluence.jetbrains.net/display/TCD4/TeamCity+Data+Backup
Some of the relevant data is actually a database, (and in fact the documentation advises you to point team city to a real database like mysql instead of the default embedded database it uses)
You could try checking those into SVN, but you'll want to stop team city for any check-in actions.
I would like to automate the deployment of Postsharp that's why I would like to have a text file that would preserve the necessary deployment settings.
Well there is a solution although not very elegant. The instalation folder was copied to the repository and there was added an post-build action in project settings that would run Postsharp.exe with necessary parameters from the location that is in repository.
I dont think so. We use it at business and we all need to install package.
I have to update the build number in assembly version of assemblyinfo.cs file.
I have written a custom tasks which updates all the assmeblyinfo.cs under a solution before starting build. But when i change this file and try to build then some of my dlls which has reference of other dlls not able to compile as they dont find the specific version assembly. I have some files which uses strong name assembly also. Not sure how to update their version. I have tried setting specific version to false,but still same error is coming.
Can you anybody tell me the good way to update the assemblyinfo.cs with incremental build number?
P.S. i am using NANT tasks for automating by builds.
There's a good NAntContrib task called Version that should do what you're looking for