Permalink
Browse files

Build script fix.

  • Loading branch information...
1 parent 287847b commit 7653d4ffcd1648825fd985b2e6591308145794f6 @kostrse kostrse committed Apr 4, 2012
Showing with 7 additions and 2 deletions.
  1. +6 −2 BuildPackage.proj
  2. +1 −0 Yandex.Direct.nuspec
View
@@ -2,7 +2,7 @@
<PropertyGroup>
<ApplicationVersion Condition="$(ApplicationVersion) == ''">$(BUILD_NUMBER)</ApplicationVersion>
- <SnkFile Condition="$(ApplicationVersion) == ''"></SnkFile>
+ <SnkFile Condition="$(SnkFile) == ''"></SnkFile>
</PropertyGroup>
<PropertyGroup>
@@ -15,7 +15,11 @@
<Target Name="Build">
<Error Condition="$(ApplicationVersion) == ''" Text="Application version is not set via 'ApplicationVersion' MSBuild property." />
- <SetVersion Files="**\AssemblyInfo.cs" Version="$(ApplicationVersion)" />
+ <ItemGroup>
+ <SetVersionFiles Include="**\AssemblyInfo.cs" />
+ </ItemGroup>
+
+ <SetVersion Files="@(SetVersionFiles)" Version="$(ApplicationVersion)" />
<SetStrongName ProjectFiles="Yandex.Direct\Yandex.Direct.csproj" UpdateInternalsVisible="true" SnkFile="$(SnkFile)" Condition="$(SnkFile) != ''" />
<SetStrongName ProjectFiles="Yandex.Direct.Tests\Yandex.Direct.Tests.csproj" SnkFile="$(SnkFile)" Condition="$(SnkFile) != ''" />
@@ -2,6 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Yandex.Direct</id>
+ <version>0.0.0.0</version>
<title>Yandex.Direct API</title>
<authors>Yapi.NET Project Contributors</authors>
<description>Yandex.Direct API library for .NET.</description>

0 comments on commit 7653d4f

Please sign in to comment.