Skip to content
This repository was archived by the owner on Feb 12, 2023. It is now read-only.

Commit 0a08eb6

Browse files
committed
Only run gitlink during Release builds
1 parent 349ff27 commit 0a08eb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitLinkTask/GitLink.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33
<PropertyGroup>
4-
<GitLinkEnabled Condition=" '$(DesignTimeBuild)' != 'true' ">true</GitLinkEnabled>
4+
<GitLinkEnabled Condition=" '$(DesignTimeBuild)' != 'true' and '$(Configuration)' == 'Release' and '$(GitLinkEnabled)' == '' ">true</GitLinkEnabled>
55
<GitLinkContinueOnError>true</GitLinkContinueOnError>
66
</PropertyGroup>
77
</Project>

0 commit comments

Comments
 (0)