This project is read-only.
<!--
  Sample project file demonstrating the use of the GetAssemblyVersion task.
-->
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" 
		 DefaultTargets="Demo">

	<PropertyGroup>
		<AssemblyPath>..\bin\debug\Sedodream.MSBuild.Tasks.dll</AssemblyPath>
	</PropertyGroup>
	
	<UsingTask AssemblyFile="$(MSBuildExtensionsPath)\Sedodream\Sedodream.MSBuild.Tasks.dll" 
			TaskName="GetAssemblyVersion"/>

	<!--<UsingTask AssemblyFile="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.dll" TaskName="Version"/>-->
	
	<Target Name="Demo">

		<GetAssemblyVersion AssemblyPath="$(AssemblyPath)">
			<Output PropertyName="Version" TaskParameter="VersionString"/>
			<Output PropertyName="Major" TaskParameter="Major"/>
			<Output PropertyName="Minor" TaskParameter="Minor"/>
			<Output PropertyName="Build" TaskParameter="Build"/>
			<Output PropertyName="Revision" TaskParameter="Revision"/>
		</GetAssemblyVersion>

		<!--<Version VersionFile="$(AssemblyPath)">
			<Output PropertyName="Major" TaskParameter="Major"/>
			<Output PropertyName="Minor" TaskParameter="Minor"/>
			<Output PropertyName="Build" TaskParameter="Build"/>
			<Output PropertyName="Revision" TaskParameter="Revision"/>
		</Version>-->
		
		<!--<Message Text="Version string: $(Version)"/>-->
		<Message Text="Version: $(Major).$(Minor).$(Build).$(Revision)"/>
		
	</Target>

</Project>

Last edited Jun 26, 2007 at 5:20 AM by sayed_hashimi, version 1

Comments

No comments yet.