Skip to content

Commit d0ce28b

Browse files
committed
Include the AsyncVoidMethodBuilder in the package
When compiling a C# project, this file will be included with the build and will allow async void methods to use the allocation-free ReusableTask infrastructure.
1 parent 2aa9a10 commit d0ce28b

File tree

5 files changed

+27
-6
lines changed

5 files changed

+27
-6
lines changed

pack.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
msbuild /restore /t:Pack /p:Configuration=Release

src/ReusableTasks.sln

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
21
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReusableTasks", "ReusableTasks\ReusableTasks.csproj", "{3BF57E6F-F7D8-49C9-B7B4-6FA3298A56D3}"
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.0.31825.309
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReusableTasks", "ReusableTasks\ReusableTasks.csproj", "{3BF57E6F-F7D8-49C9-B7B4-6FA3298A56D3}"
56
EndProject
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReusableTasks.Tests", "ReusableTasks.Tests\ReusableTasks.Tests.csproj", "{99C257E6-09C2-4540-98B9-1A899D4D5948}"
7+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ReusableTasks.Tests", "ReusableTasks.Tests\ReusableTasks.Tests.csproj", "{99C257E6-09C2-4540-98B9-1A899D4D5948}"
78
EndProject
89
Global
910
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -20,4 +21,10 @@ Global
2021
{99C257E6-09C2-4540-98B9-1A899D4D5948}.Release|Any CPU.ActiveCfg = Release|Any CPU
2122
{99C257E6-09C2-4540-98B9-1A899D4D5948}.Release|Any CPU.Build.0 = Release|Any CPU
2223
EndGlobalSection
24+
GlobalSection(SolutionProperties) = preSolution
25+
HideSolutionNode = FALSE
26+
EndGlobalSection
27+
GlobalSection(ExtensibilityGlobals) = postSolution
28+
SolutionGuid = {741D5826-AF23-4A6B-8A54-7D6215347C18}
29+
EndGlobalSection
2330
EndGlobal
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project>
3+
4+
<ItemGroup Condition="'$(Language)' == 'C#' And '$(DisableAsyncVoidOptimisation)' != 'true'">
5+
<Compile Include="$(MSBuildThisFileDirectory)\AsyncVoidMethodBuilder.cs">
6+
<Link>AsyncVoidMethodBuilder.cs</Link>
7+
<Visible>True</Visible>
8+
</Compile>
9+
</ItemGroup>
10+
11+
</Project>

src/ReusableTasks/ReusableTasks.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@
6666
</Target>
6767

6868
<ItemGroup>
69-
<PackageReference Include="GitInfo" Version="2.0.20" PrivateAssets="all" />
69+
<PackageReference Include="GitInfo" Version="2.0.34" PrivateAssets="all" />
7070
</ItemGroup>
7171

7272
<ItemGroup>
7373
<Content Include="..\..\LICENSE.md" Pack="true" PackagePath="/" />
74+
<None Include="System.Runtime.CompilerServices\AsyncVoidMethodBuilder.cs" Pack="true" PackagePath="build" />
75+
<None Include="NugetTargets\ReusableTasks.targets" Pack="true" PackagePath="build" />
7476
</ItemGroup>
7577
</Project>

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.0
1+
2.0.1

0 commit comments

Comments
 (0)