Skip to content

Commit a4d9ed7

Browse files
committed
Added LocalDebug build option
1 parent 2750bef commit a4d9ed7

File tree

8 files changed

+63
-3
lines changed

8 files changed

+63
-3
lines changed

Chatter/Chatter.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@
3131
<ErrorReport>prompt</ErrorReport>
3232
<WarningLevel>4</WarningLevel>
3333
</PropertyGroup>
34+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'LocalDebug|AnyCPU'">
35+
<DebugSymbols>true</DebugSymbols>
36+
<OutputPath>bin\LocalDebug\</OutputPath>
37+
<DefineConstants>TRACE;DEBUG;LOCALDEBUG</DefineConstants>
38+
<DebugType>full</DebugType>
39+
<PlatformTarget>AnyCPU</PlatformTarget>
40+
<ErrorReport>prompt</ErrorReport>
41+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
42+
<Prefer32Bit>true</Prefer32Bit>
43+
</PropertyGroup>
3444
<ItemGroup>
3545
<Reference Include="System" />
3646
<Reference Include="System.Core" />

Chatter/Form1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private async void LoadClient(object sender, EventArgs e)
5353
{
5454
this.client = new MednaNetAPIClient.Client("mednanet.medlaunch.info", "443", "562ad8ef-12c4-4596-ac58-f5021749541b");
5555

56-
#if DEBUG
56+
#if LOCALDEBUG
5757
this.client = new MednaNetAPIClient.Client("localhost", "24215", "562ad8ef-12c4-4596-ac58-f5021749541b");
5858
#endif
5959
currentInstall = await this.client.Install.GetCurrentInstall("562ad8ef-12c4-4596-ac58-f5021749541b");

MednaNet-Bridge/MednaNet-Bridge.csproj

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@
3434
<ErrorReport>prompt</ErrorReport>
3535
<WarningLevel>4</WarningLevel>
3636
</PropertyGroup>
37+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'LocalDebug|AnyCPU'">
38+
<DebugSymbols>true</DebugSymbols>
39+
<OutputPath>bin\LocalDebug\</OutputPath>
40+
<DefineConstants>TRACE;DEBUG;LOCALDEBUG</DefineConstants>
41+
<DebugType>full</DebugType>
42+
<PlatformTarget>AnyCPU</PlatformTarget>
43+
<ErrorReport>prompt</ErrorReport>
44+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
45+
<Prefer32Bit>true</Prefer32Bit>
46+
</PropertyGroup>
3747
<ItemGroup>
3848
<Reference Include="Costura, Version=1.6.2.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
3949
<HintPath>..\packages\Costura.Fody.1.6.2\lib\dotnet\Costura.dll</HintPath>

MednaNet.sln

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,37 @@ EndProject
1616
Global
1717
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1818
Debug|Any CPU = Debug|Any CPU
19+
LocalDebug|Any CPU = LocalDebug|Any CPU
1920
Release|Any CPU = Release|Any CPU
2021
EndGlobalSection
2122
GlobalSection(ProjectConfigurationPlatforms) = postSolution
2223
{38F2FB23-7ADB-4E0E-B5F1-D639E1C4B867}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2324
{38F2FB23-7ADB-4E0E-B5F1-D639E1C4B867}.Debug|Any CPU.Build.0 = Debug|Any CPU
25+
{38F2FB23-7ADB-4E0E-B5F1-D639E1C4B867}.LocalDebug|Any CPU.ActiveCfg = LocalDebug|Any CPU
26+
{38F2FB23-7ADB-4E0E-B5F1-D639E1C4B867}.LocalDebug|Any CPU.Build.0 = LocalDebug|Any CPU
2427
{38F2FB23-7ADB-4E0E-B5F1-D639E1C4B867}.Release|Any CPU.ActiveCfg = Release|Any CPU
2528
{38F2FB23-7ADB-4E0E-B5F1-D639E1C4B867}.Release|Any CPU.Build.0 = Release|Any CPU
2629
{D0329E55-86C0-4508-A184-C6BE052BAE80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2730
{D0329E55-86C0-4508-A184-C6BE052BAE80}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{D0329E55-86C0-4508-A184-C6BE052BAE80}.LocalDebug|Any CPU.ActiveCfg = LocalDebug|Any CPU
32+
{D0329E55-86C0-4508-A184-C6BE052BAE80}.LocalDebug|Any CPU.Build.0 = LocalDebug|Any CPU
2833
{D0329E55-86C0-4508-A184-C6BE052BAE80}.Release|Any CPU.ActiveCfg = Release|Any CPU
2934
{D0329E55-86C0-4508-A184-C6BE052BAE80}.Release|Any CPU.Build.0 = Release|Any CPU
3035
{AA7C3CF6-2C61-4B01-994C-F57634B2A695}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3136
{AA7C3CF6-2C61-4B01-994C-F57634B2A695}.Debug|Any CPU.Build.0 = Debug|Any CPU
37+
{AA7C3CF6-2C61-4B01-994C-F57634B2A695}.LocalDebug|Any CPU.ActiveCfg = LocalDebug|Any CPU
38+
{AA7C3CF6-2C61-4B01-994C-F57634B2A695}.LocalDebug|Any CPU.Build.0 = LocalDebug|Any CPU
3239
{AA7C3CF6-2C61-4B01-994C-F57634B2A695}.Release|Any CPU.ActiveCfg = Release|Any CPU
3340
{AA7C3CF6-2C61-4B01-994C-F57634B2A695}.Release|Any CPU.Build.0 = Release|Any CPU
3441
{8A8E6E3A-EAB9-469A-87F0-205FBEA60972}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
3542
{8A8E6E3A-EAB9-469A-87F0-205FBEA60972}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{8A8E6E3A-EAB9-469A-87F0-205FBEA60972}.LocalDebug|Any CPU.ActiveCfg = LocalDebug|Any CPU
44+
{8A8E6E3A-EAB9-469A-87F0-205FBEA60972}.LocalDebug|Any CPU.Build.0 = LocalDebug|Any CPU
3645
{8A8E6E3A-EAB9-469A-87F0-205FBEA60972}.Release|Any CPU.ActiveCfg = Release|Any CPU
3746
{8A8E6E3A-EAB9-469A-87F0-205FBEA60972}.Release|Any CPU.Build.0 = Release|Any CPU
3847
{F9C35461-BCC4-41EE-88BD-2D19AF96C04B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
48+
{F9C35461-BCC4-41EE-88BD-2D19AF96C04B}.LocalDebug|Any CPU.ActiveCfg = LocalDebug|Any CPU
49+
{F9C35461-BCC4-41EE-88BD-2D19AF96C04B}.LocalDebug|Any CPU.Deploy.0 = LocalDebug|Any CPU
3950
{F9C35461-BCC4-41EE-88BD-2D19AF96C04B}.Release|Any CPU.ActiveCfg = Release|Any CPU
4051
EndGlobalSection
4152
GlobalSection(SolutionProperties) = preSolution

MednaNetAPI/MednaNetAPI.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,15 @@
273273
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
274274
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
275275
</PropertyGroup>
276+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'LocalDebug|AnyCPU'">
277+
<DebugSymbols>true</DebugSymbols>
278+
<OutputPath>bin\</OutputPath>
279+
<DefineConstants>TRACE;DEBUG;LOCALDEBUG</DefineConstants>
280+
<DebugType>full</DebugType>
281+
<PlatformTarget>AnyCPU</PlatformTarget>
282+
<ErrorReport>prompt</ErrorReport>
283+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
284+
</PropertyGroup>
276285
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
277286
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" />
278287
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" />

MednaNetAPIClient/Client.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private void SetupClient(string apiHostname, string apiPort, string installKey)
7070

7171
this.client.BaseAddress = new Uri("https://" + url + ":" + port + "/");
7272

73-
#if DEBUG
73+
#if LOCALDEBUG
7474

7575
this.client.BaseAddress = new Uri("http://" + url + ":" + port + "/"); //use for local
7676

MednaNetAPIClient/MednaNetAPIClient.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@
2929
<ErrorReport>prompt</ErrorReport>
3030
<WarningLevel>4</WarningLevel>
3131
</PropertyGroup>
32+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'LocalDebug|AnyCPU'">
33+
<DebugSymbols>true</DebugSymbols>
34+
<OutputPath>bin\LocalDebug\</OutputPath>
35+
<DefineConstants>TRACE;DEBUG;LOCALDEBUG</DefineConstants>
36+
<DebugType>full</DebugType>
37+
<PlatformTarget>AnyCPU</PlatformTarget>
38+
<ErrorReport>prompt</ErrorReport>
39+
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
40+
</PropertyGroup>
3241
<ItemGroup>
3342
<Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
3443
<HintPath>..\packages\Newtonsoft.Json.6.0.4\lib\net45\Newtonsoft.Json.dll</HintPath>

MednaNetSQL/MednaNetSQL.sqlproj

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
<WarningLevel>4</WarningLevel>
3737
</PropertyGroup>
3838
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
39-
<OutputPath>bin\Debug\</OutputPath>
4039
<BuildScriptName>$(MSBuildProjectName).sql</BuildScriptName>
4140
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
4241
<DebugSymbols>true</DebugSymbols>
@@ -53,6 +52,18 @@
5352
<SSDTExists Condition="Exists('$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets')">True</SSDTExists>
5453
<VisualStudioVersion Condition="'$(SSDTExists)' == ''">11.0</VisualStudioVersion>
5554
</PropertyGroup>
55+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'LocalDebug|AnyCPU' ">
56+
<OutputPath>bin\Debug\</OutputPath>
57+
<BuildScriptName>$(MSBuildProjectName).sql</BuildScriptName>
58+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
59+
<DebugSymbols>true</DebugSymbols>
60+
<DebugType>full</DebugType>
61+
<Optimize>false</Optimize>
62+
<DefineDebug>true</DefineDebug>
63+
<DefineTrace>true</DefineTrace>
64+
<ErrorReport>prompt</ErrorReport>
65+
<WarningLevel>4</WarningLevel>
66+
</PropertyGroup>
5667
<Import Condition="'$(SQLDBExtensionsRefPath)' != ''" Project="$(SQLDBExtensionsRefPath)\Microsoft.Data.Tools.Schema.SqlTasks.targets" />
5768
<Import Condition="'$(SQLDBExtensionsRefPath)' == ''" Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" />
5869
<ItemGroup>

0 commit comments

Comments
 (0)