- Notifications
You must be signed in to change notification settings - Fork 915
Target .NET Standard 1.3#1318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Target .NET Standard 1.3 #1318
Changes from all commits
442f626d7ef5f368ee9b7e08f9e5ef51bef61176b86704b7db6aa86d2e32bb04cc6acd6a2fb6be94a7b290670413c8ab4b370cdfa2557d8c9abdff2250599ca4a2383476e4beda5e55cbf7ad91e7d94575d58dfa797183312253be41ee5d3fe10951aceef060bae5e3555940f2900cf5b30f625f5caa81131569302a4e53b44040de6c3696682273a14555f3ebd3b1f9a94aa92d1f183a85fc402146e5995398298566e31d2255243f95f3c61aaf28da0adefa07390cba8c334fed0ecfd5d6c38dfb9129403971fe876ff83129cc761372a7c0cf832803e499e71087509c71e04998f1b38cfbcc5610f27f2543ec9fca61f4ca2bbbd851767a6f4cd6fe1533a64a07e2920e59648f73d04b2be468eefe0ad235f8aa240072bbf009658a537f847ad24c0171a417741a6fca81289ad39f9c1541e97d87fc2f2bf103e3888f8028aeb39bf4fd826040048e690f9c358bc31f4f58b3f9b0f9bef8217b856f9bea0032840832ff8e785fcaaec99cb43c6ed131dec0f37bf43cc219fd514282c6a106f79eb4cdee418992f29c7a83a01c5ceb6c84e6c82177a5d59d09828971808c17b480db0b2e039e14e6b2c2a64efe5a60c102400cb3775823e8b42c92dc60b162c503a0cdd6de035bdd5637067eb577b6fa4c38e6960620c68fee5414fee9a1f7c361f7b8d08c78ca086ed22ab084d13ef7dc8e4a3File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <ProjectSdk="Microsoft.NET.Sdk"> | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the workaround to get this working properly was to commit the assembly directly vs building it, would it be worth including in the VS solution so it shows up at least? Also, why is the folder where the assembly is saved called ContributorAuthor
| ||
| <PropertyGroup> | ||
| <TargetFramework>netstandard1.5</TargetFramework> | ||
| <PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback> | ||
| <IsPackable>false</IsPackable> | ||
| <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReferenceInclude="CodeGeneration.Roslyn"Version="$(CodeGenerationRoslynVersion)" /> | ||
| </ItemGroup> | ||
| </Project> | ||
Large diffs are not rendered by default.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
| <PropertyGroup> | ||
| <TargetFrameworks>net40;netstandard1.0</TargetFrameworks> | ||
| <SignAssembly>true</SignAssembly> | ||
| <AssemblyOriginatorKeyFile>..\libgit2sharp.snk</AssemblyOriginatorKeyFile> | ||
| <IsPackable>false</IsPackable> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReference Include="CodeGeneration.Roslyn.Attributes" Version="$(CodeGenerationRoslynVersion)" /> | ||
| </ItemGroup> | ||
| </Project> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Diagnostics; | ||
| using System.Text; | ||
| namespace LibGit2Sharp | ||
| { | ||
| [AttributeUsage(AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false)] | ||
| [Conditional("CodeGeneration")] | ||
| public class CustomMarshalerAttribute : Attribute | ||
| { | ||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="CustomMarshalerAttribute"/> class. | ||
| /// </summary> | ||
| /// <param name="customMarshaler">The type that derives from ICustomMarshaler.</param> | ||
| /// <param name="friendlyType">The type to expose in the generated overload.</param> | ||
| public CustomMarshalerAttribute(Type customMarshaler, Type friendlyType) | ||
| { | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| using System; | ||
| using System.Diagnostics; | ||
| using CodeGeneration.Roslyn; | ||
| namespace LibGit2Sharp | ||
| { | ||
| /// <summary> | ||
| /// Causes generation of an overload of a P/Invoke method that has a more friendly signature. | ||
| /// </summary> | ||
| [AttributeUsage(AttributeTargets.Class, AllowMultiple = true)] | ||
| [CodeGenerationAttribute("CodeGeneration.OfferFriendlyInteropOverloadsGenerator, CodeGeneration, Version=" + ThisAssembly.AssemblyVersion + ", Culture=neutral, PublicKeyToken=null")] | ||
| [Conditional("CodeGeneration")] | ||
| public class OfferFriendlyInteropOverloadsAttribute : Attribute | ||
| { | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| <Project> | ||
| <PropertyGroup> | ||
| <OutputPath>$(MSBuildThisFileDirectory)bin\$(MSBuildProjectName)\$(Configuration)\</OutputPath> | ||
| <BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath> | ||
| <CodeGenerationRoslynVersion>0.3.13-gfce1c8ba1e</CodeGenerationRoslynVersion> | ||
| </PropertyGroup> | ||
| <ItemGroup> | ||
| <PackageReference Include="Nerdbank.GitVersioning" Version="1.6.25" PrivateAssets="all" /> | ||
| </ItemGroup> | ||
| </Project> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| <Project> | ||
| <PropertyGroup> | ||
| <PublicSign Condition=" '$(AssemblyOriginatorKeyFile)' != '' and '$(OS)' != 'Windows_NT' ">true</PublicSign> | ||
| </PropertyGroup> | ||
| </Project> |
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we doing this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the git "height" can be calculated during the build, as it makes up part of the version number of the nuget package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, that's clever.
Apparently Travis doesn't have an option to just do a regular clone, which is a pity, since a shallow clone followed by unshallowing it is crazy expensive compared to just doing a regular clone in the first place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I couldn't find a way to disable their shallow fetching, so this seemed like the best workaround.