Skip to content

Commit 530b011

Browse files
authored
Merge pull request #517 from caleblloyd/f_performance_proj_sdk
Change MySqlConnector.Performance SDK to Microsoft.NET.Sdk.Web.
2 parents 4a4b860 + abaa521 commit 530b011

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

tests/MySqlConnector.Performance/MySqlConnector.Performance.csproj

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp2.1</TargetFramework>
@@ -27,12 +27,27 @@
2727
</PropertyGroup>
2828

2929
<ItemGroup>
30-
<None Update="appsettings.json">
31-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
32-
</None>
33-
<None Update="config.json">
34-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
35-
</None>
30+
<AppConfig Include="appsettings.json" />
31+
<AppConfig Include="config.json" />
3632
</ItemGroup>
3733

34+
<Target Name="CopyDirsAfterBuild" AfterTargets="Build">
35+
<Copy
36+
SourceFiles="@(AppConfig)"
37+
DestinationFolder="$(OutDir)\%(RecursiveDir)"
38+
SkipUnchangedFiles="true"
39+
OverwriteReadOnlyFiles="true"
40+
Retries="3"
41+
RetryDelayMilliseconds="300"/>
42+
</Target>
43+
<Target Name="CopyDirsAfterPublish" AfterTargets="Publish">
44+
<Copy
45+
SourceFiles="@(AppConfig)"
46+
DestinationFolder="$(PublishDir)\%(RecursiveDir)"
47+
SkipUnchangedFiles="true"
48+
OverwriteReadOnlyFiles="true"
49+
Retries="3"
50+
RetryDelayMilliseconds="300"/>
51+
</Target>
52+
3853
</Project>

0 commit comments

Comments
 (0)