Skip to content

Commit

Permalink
Issues 1120
Browse files Browse the repository at this point in the history
for GSoC 2016: Add support for interacting with repositories by id.
octokit#1120 example
  • Loading branch information
rusden220 committed Mar 25, 2016
1 parent cd4555f commit 4e935a8
Show file tree
Hide file tree
Showing 16 changed files with 220 additions and 39 deletions.
2 changes: 1 addition & 1 deletion Octokit.Reactive/Octokit.Reactive.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<DefineConstants>TRACE;DEBUG;CODE_ANALYSIS;NET_45;SIMPLE_JSON_READONLY_COLLECTIONS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisRuleSet>..\Octokit.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
Expand Down
1 change: 1 addition & 0 deletions Octokit.Tests/Octokit.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<NoWarn>4014, 1998</NoWarn>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand Down
43 changes: 12 additions & 31 deletions Octokit.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.24720.0
# Visual Studio 2013
VisualStudioVersion = 12.0.40629.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit", "Octokit\Octokit.csproj", "{08DD4305-7787-4823-A53F-4D0F725A07F3}"
EndProject
Expand Down Expand Up @@ -32,19 +32,16 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Meta", "Meta", "{397C742D-2
SolutionInfo.cs = SolutionInfo.cs
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit-NetCore45", "Octokit\Octokit-NetCore45.csproj", "{C8BC13B6-3FA3-4716-827D-E7706F976FE1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit.Reactive", "Octokit.Reactive\Octokit.Reactive.csproj", "{674B69B8-0780-4D54-AE2B-C15821FA51CB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit.Tests-NetCore45", "Octokit.Tests\Octokit.Tests-NetCore45.csproj", "{3F4686DA-8774-4940-823E-9138F4B42060}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit-Mono", "Octokit\Octokit-Mono.csproj", "{49EF16A2-5ED1-480F-80A1-D1D05D6C1BE4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit.Tests.Conventions", "Octokit.Tests.Conventions\Octokit.Tests.Conventions.csproj", "{5345E2E6-4E7C-40F8-831B-E491F6051D3C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit-Portable", "Octokit\Octokit-Portable.csproj", "{DDB20481-E17D-4E0A-B2C0-FFFF78D4ED71}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Octokit.Tests-Portable", "Octokit.Tests\Octokit.Tests-Portable.csproj", "{CBE29DDD-F15C-46CC-A250-E6ECF55BEED4}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OctokitNetTestLib", "OctokitNetTestLib\OctokitNetTestLib.csproj", "{1D5E3D37-FAC2-4BC9-A253-1AAAE4A90088}"
ProjectSection(ProjectDependencies) = postProject
{01687D54-1D87-4562-A721-C57F1C94052C} = {01687D54-1D87-4562-A721-C57F1C94052C}
{149448D4-C2F2-4DF9-86BD-03E3272F093B} = {149448D4-C2F2-4DF9-86BD-03E3272F093B}
{5345E2E6-4E7C-40F8-831B-E491F6051D3C} = {5345E2E6-4E7C-40F8-831B-E491F6051D3C}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -64,34 +61,18 @@ Global
{01687D54-1D87-4562-A721-C57F1C94052C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{01687D54-1D87-4562-A721-C57F1C94052C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{01687D54-1D87-4562-A721-C57F1C94052C}.Release|Any CPU.Build.0 = Release|Any CPU
{C8BC13B6-3FA3-4716-827D-E7706F976FE1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C8BC13B6-3FA3-4716-827D-E7706F976FE1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C8BC13B6-3FA3-4716-827D-E7706F976FE1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C8BC13B6-3FA3-4716-827D-E7706F976FE1}.Release|Any CPU.Build.0 = Release|Any CPU
{674B69B8-0780-4D54-AE2B-C15821FA51CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{674B69B8-0780-4D54-AE2B-C15821FA51CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{674B69B8-0780-4D54-AE2B-C15821FA51CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{674B69B8-0780-4D54-AE2B-C15821FA51CB}.Release|Any CPU.Build.0 = Release|Any CPU
{3F4686DA-8774-4940-823E-9138F4B42060}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3F4686DA-8774-4940-823E-9138F4B42060}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3F4686DA-8774-4940-823E-9138F4B42060}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3F4686DA-8774-4940-823E-9138F4B42060}.Release|Any CPU.Build.0 = Release|Any CPU
{49EF16A2-5ED1-480F-80A1-D1D05D6C1BE4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{49EF16A2-5ED1-480F-80A1-D1D05D6C1BE4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{49EF16A2-5ED1-480F-80A1-D1D05D6C1BE4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{49EF16A2-5ED1-480F-80A1-D1D05D6C1BE4}.Release|Any CPU.Build.0 = Release|Any CPU
{5345E2E6-4E7C-40F8-831B-E491F6051D3C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5345E2E6-4E7C-40F8-831B-E491F6051D3C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5345E2E6-4E7C-40F8-831B-E491F6051D3C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5345E2E6-4E7C-40F8-831B-E491F6051D3C}.Release|Any CPU.Build.0 = Release|Any CPU
{DDB20481-E17D-4E0A-B2C0-FFFF78D4ED71}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DDB20481-E17D-4E0A-B2C0-FFFF78D4ED71}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DDB20481-E17D-4E0A-B2C0-FFFF78D4ED71}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DDB20481-E17D-4E0A-B2C0-FFFF78D4ED71}.Release|Any CPU.Build.0 = Release|Any CPU
{CBE29DDD-F15C-46CC-A250-E6ECF55BEED4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CBE29DDD-F15C-46CC-A250-E6ECF55BEED4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CBE29DDD-F15C-46CC-A250-E6ECF55BEED4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CBE29DDD-F15C-46CC-A250-E6ECF55BEED4}.Release|Any CPU.Build.0 = Release|Any CPU
{1D5E3D37-FAC2-4BC9-A253-1AAAE4A90088}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1D5E3D37-FAC2-4BC9-A253-1AAAE4A90088}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1D5E3D37-FAC2-4BC9-A253-1AAAE4A90088}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1D5E3D37-FAC2-4BC9-A253-1AAAE4A90088}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
17 changes: 15 additions & 2 deletions Octokit/Clients/BlobsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public Task<Blob> Get(string owner, string name, string reference)
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
Ensure.ArgumentNotNullOrEmptyString(name, "name");
Ensure.ArgumentNotNullOrEmptyString(reference, "reference");

return ApiConnection.Get<Blob>(ApiUrls.Blob(owner, name, reference));
}

Expand All @@ -56,5 +56,18 @@ public Task<BlobReference> Create(string owner, string name, NewBlob newBlob)

return ApiConnection.Post<BlobReference>(ApiUrls.Blob(owner, name), newBlob);
}
}
/// <summary>
///
/// </summary>
/// <param name="id"></param>
/// <param name="reference"></param>
/// <returns></returns>
public Task<Blob> Get(string id, string reference)
{
Ensure.ArgumentNotNullOrEmptyString(id, "id");
Ensure.ArgumentNotNullOrEmptyString(reference, "reference");

return ApiConnection.Get<Blob>(ApiUrls.BlobById(id, reference));
}
}
}
13 changes: 12 additions & 1 deletion Octokit/Clients/IBlobsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,18 @@ public interface IBlobsClient
/// <returns>The <see cref="Blob"/> for the specified SHA.</returns>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
Task<Blob> Get(string owner, string name, string reference);

/// <summary>
/// Gets a single Blob by SHA.
/// </summary>
/// <remarks>
/// http://developer.github.com/v3/git/blobs/#get-a-blob
/// </remarks>
/// <param name="id">repositorie's id</param>
/// <param name="name">The name of the repository</param>
/// <param name="reference">The SHA of the blob</param>
/// <returns>The <see cref="Blob"/> for the specified SHA.</returns>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get")]
Task<Blob> Get(string id, string reference);
/// <summary>
/// Creates a new Blob
/// </summary>
Expand Down
9 changes: 9 additions & 0 deletions Octokit/Clients/UsersClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ public Task<User> Get(string login)
var endpoint = "users/{0}".FormatUri(login);
return ApiConnection.Get<User>(endpoint);
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "client")]
public Task<User> Get(string login,IGitHubClient client)
{
Ensure.ArgumentNotNullOrEmptyString(login, "login");

var endpoint = "users/{0}".FormatUri(login);
return ApiConnection.Get<User>(endpoint);

}

/// <summary>
/// Returns a <see cref="User"/> for the current authenticated user.
Expand Down
Binary file added Octokit/GlobalSuppressions.cs
Binary file not shown.
15 changes: 15 additions & 0 deletions Octokit/Helpers/ApiUrls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,21 @@ public static Uri Blob(string owner, string name, string reference)
}
return blob.FormatUri(owner, name, reference);
}
/// <summary>
/// Returns the <see cref="Uri"/> for a specifc blob.
/// </summary>
/// <param name="id">repositorie's id</param>
/// <param name="reference">The SHA of the blob</param>
/// <returns></returns>
public static Uri BlobById(string id, string reference)
{
string blob = "repositories/{0}/git/blobs";
if (!string.IsNullOrEmpty(reference))
{
blob += "/{1}";
}
return blob.FormatUri(id, reference);
}

/// <summary>
/// Returns the <see cref="Uri"/> for the specified tree.
Expand Down
4 changes: 2 additions & 2 deletions Octokit/Octokit-netcore45.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<DefineConstants>TRACE;DEBUG;CODE_ANALYSIS;NETFX_CORE;CODE_ANALYSIS;SIMPLE_JSON_OBJARRAYINTERNAL;SIMPLE_JSON_INTERNAL;NET_45;SIMPLE_JSON_READONLY_COLLECTIONS</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisRuleSet>..\Octokit.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
Expand Down Expand Up @@ -468,7 +468,7 @@
<Link>CustomDictionary.xml</Link>
</CodeAnalysisDictionary>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v14.0\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v12.0\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
Expand Down
3 changes: 2 additions & 1 deletion Octokit/Octokit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisAdditionalOptions> /assemblycomparemode:StrongNameIgnoringVersion</CodeAnalysisAdditionalOptions>
<CodeAnalysisRuleSet>..\Octokit.ruleset</CodeAnalysisRuleSet>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
Expand Down Expand Up @@ -98,6 +98,7 @@
<Compile Include="Exceptions\RepositoryFormatException.cs" />
<Compile Include="Exceptions\RepositoryWebHookConfigException.cs" />
<Compile Include="Exceptions\TwoFactorAuthorizationException.cs" />
<Compile Include="GlobalSuppressions.cs" />
<Compile Include="Helpers\AcceptHeaders.cs" />
<Compile Include="Helpers\ApiErrorExtensions.cs" />
<Compile Include="Helpers\ApiUrls.Authorizations.cs" />
Expand Down
2 changes: 1 addition & 1 deletion Octokit/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;

[assembly: AssemblyTitle("Octokit")]
[assembly: AssemblyDescription("An async-based GitHub API client library for .NET")]
[assembly: AssemblyDescription("An async-based GitHub API client library for .NET Build by SDK")]
[assembly: InternalsVisibleTo("Octokit.Tests")]
[assembly: InternalsVisibleTo("Octokit.Tests-NetCore45")]
[assembly: InternalsVisibleTo("Octokit.Tests-Portable")]
6 changes: 6 additions & 0 deletions OctokitNetTestLib/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
</startup>
</configuration>
69 changes: 69 additions & 0 deletions OctokitNetTestLib/OctokitNetTestLib.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1D5E3D37-FAC2-4BC9-A253-1AAAE4A90088}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OctokitNetTestLib</RootNamespace>
<AssemblyName>OctokitNetTestLib</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Octokit.Reactive\Octokit.Reactive.csproj">
<Project>{674b69b8-0780-4d54-ae2b-c15821fa51cb}</Project>
<Name>Octokit.Reactive</Name>
</ProjectReference>
<ProjectReference Include="..\Octokit\Octokit.csproj">
<Project>{08dd4305-7787-4823-a53f-4d0f725a07f3}</Project>
<Name>Octokit</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
38 changes: 38 additions & 0 deletions OctokitNetTestLib/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Octokit;

namespace OctokitNetTestLib
{
public class OctakitTest
{
public async Task Run()
{
var gh = new BlobsClient(new ApiConnection(new Connection(new ProductHeaderValue("OctokitNetTestLib"))));
//Get blob from repo by name
Blob blobFromRepo = await gh.Get("rusden220", "BlobTest", "dd37f279ab79447f14c7b8deeed50959ebf9d979");
//Get blob from repositories by id
Blob blobFrompRepoId = await gh.Get("54711605", "dd37f279ab79447f14c7b8deeed50959ebf9d979");
//compare
if (blobFromRepo.Sha == blobFrompRepoId.Sha && blobFromRepo.Content == blobFrompRepoId.Content)
{
Console.WriteLine("a blob from repo by id and blob from repo by name are equals");
}
}
}
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Test for GSoC 2016 in issues 112 from github");
Console.WriteLine("https://github.com/github/mentorships/issues/112");
new OctakitTest().Run().Wait();
Console.WriteLine("press enter to exit");
Console.ReadLine();
}

}
}
36 changes: 36 additions & 0 deletions OctokitNetTestLib/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// Управление общими сведениями о сборке осуществляется с помощью
// набора атрибутов. Измените значения этих атрибутов, чтобы изменить сведения,
// связанные со сборкой.
[assembly: AssemblyTitle("OctokitNetTestLib")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("OctokitNetTestLib")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Параметр ComVisible со значением FALSE делает типы в сборке невидимыми
// для COM-компонентов. Если требуется обратиться к типу в этой сборке через
// COM, задайте атрибуту ComVisible значение TRUE для этого типа.
[assembly: ComVisible(false)]

// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
[assembly: Guid("fe54ed16-cbd7-4d96-9171-3ea9a330644d")]

// Сведения о версии сборки состоят из следующих четырех значений:
//
// Основной номер версии
// Дополнительный номер версии
// Номер сборки
// Редакция
//
// Можно задать все значения или принять номера сборки и редакции по умолчанию
// используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
1 change: 1 addition & 0 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ rem Bail if we're running a MyGet build.
if /i "%BuildRunner%"=="MyGet" goto Quit

:Quit
Pause
exit /b %errorlevel%

0 comments on commit 4e935a8

Please sign in to comment.