1. Christian Specht
  2. MissileSharp

Commits

Christian Specht  committed b1a36a4 Draft

switch ClickOnce hosting to CodePlex

http://codeplex.codeplex.com/wikipage?title=ClickOnce

  • Participants
  • Parent commits b9b0a84
  • Branches default

Comments (0)

Files changed (2)

File build.proj

View file
 
 	<!-- build ClickOnce setup -->
 	<Target Name="ClickOnce">
+	
+		<PropertyGroup>
+			<PubDir>$(MSBuildProjectDirectory)\$(ReleaseDir)\clickonce-launcher\</PubDir>
+			<CodeplexPubDir>$(MSBuildProjectDirectory)\$(ReleaseDir)\clickonce-launcher-codeplex\</CodeplexPubDir>
+		</PropertyGroup>
+	
+		<!-- 1. publish directly into the release folder -->
 		<MSBuild
 			Projects="src\MissileSharp.Launcher\MissileSharp.Launcher.csproj"
 			Targets="Publish"
 			Properties="Configuration=Release;
-						PublishDir=$(MSBuildProjectDirectory)\$(ReleaseDir)\clickonce-launcher\;
+						PublishDir=$(PubDir);
 						ApplicationVersion=$(ClickOnceVersionNumber)" />
+
+		<!-- 2. zip the published folder for uploading to CodePlex -->
+		<ItemGroup>
+			<ClickOnceFiles Include="$(PubDir)\**\*.*" />
+		</ItemGroup>
+		<Zip ZipFileName="$(CodeplexPubDir)\missilesharp-launcher-$(VersionNumber).zip" WorkingDirectory="$(PubDir)" Files="@(ClickOnceFiles)" />
+		
 	</Target>
 	
 </Project>

File src/MissileSharp.Launcher/MissileSharp.Launcher.csproj

View file
     <UpdatePeriodically>false</UpdatePeriodically>
     <UpdateRequired>false</UpdateRequired>
     <MapFileExtensions>true</MapFileExtensions>
-    <InstallUrl>http://christianspecht.de/download/missilesharp/</InstallUrl>
+    <InstallUrl>https://missilesharp.codeplex.com/releases/clickonce/</InstallUrl>
     <SupportUrl>http://christianspecht.de/missilesharp/</SupportUrl>
     <ErrorReportUrl>https://bitbucket.org/christianspecht/missilesharp/issues</ErrorReportUrl>
     <ProductName>MissileSharp Launcher</ProductName>