Skip to content

Commit 63b53ff

Browse files
committed
Fix build on VStudio (I'm mainly using VSCode with this project)
1 parent 20f3aa3 commit 63b53ff

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

HtmlToOpenXml.sln

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26730.16
3+
# Visual Studio 17
4+
VisualStudioVersion = 17.8.34511.84
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HtmlToOpenXml", "src\Html2OpenXml\HtmlToOpenXml.csproj", "{EF700F30-C9BB-49A6-912C-E3B77857B514}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{58520A98-BA53-4BA4-AAE3-786AA21331D6}"
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{84EA02ED-2E97-47D2-992E-32CC104A3A7A}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Demo", "examples\Demo\Demo.csproj", "{A1ECC760-B9F7-4A00-AF5F-568B5FD6F09F}"
12+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Demo", "examples\Demo\Demo.csproj", "{A1ECC760-B9F7-4A00-AF5F-568B5FD6F09F}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HtmlToOpenXml.Tests", "test\HtmlToOpenXml.Tests\HtmlToOpenXml.Tests.csproj", "{CA0A68E0-45A0-4A01-A061-F951D93D6906}"
14+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HtmlToOpenXml.Tests", "test\HtmlToOpenXml.Tests\HtmlToOpenXml.Tests.csproj", "{CA0A68E0-45A0-4A01-A061-F951D93D6906}"
1515
EndProject
1616
Global
1717
GlobalSection(SolutionConfigurationPlatforms) = preSolution

examples/Demo/Demo.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
<ProjectReference Include="..\..\src\Html2OpenXml\HtmlToOpenXml.csproj" />
1515
</ItemGroup>
1616

17+
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
18+
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
19+
<Optimize>false</Optimize>
20+
</PropertyGroup>
21+
1722
<ItemGroup>
1823
<EmbeddedResource Include="Resources\*" />
1924
</ItemGroup>

src/Html2OpenXml/HtmlToOpenXml.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.0" />
5151
</ItemGroup>
5252

53+
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">
54+
<DefineConstants>$(DefineConstants);DEBUG</DefineConstants>
55+
<Optimize>false</Optimize>
56+
</PropertyGroup>
5357
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
5458
<IncludeSymbols>true</IncludeSymbols>
5559
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

0 commit comments

Comments
 (0)