Skip to content

Commit 882c0dc

Browse files
author
gauffininteractive
committed
added a WebPI deployment package
1 parent 5dacd21 commit 882c0dc

File tree

3 files changed

+64
-4
lines changed

3 files changed

+64
-4
lines changed

src/Server/OneTrueError.Web/OneTrueError.Web.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@
491491
<Content Include="Content\bootstrap\alerts.less" />
492492
<None Include="Properties\PublishProfiles\deoply.pubxml" />
493493
<None Include="Properties\PublishProfiles\LocalPublish.pubxml" />
494+
<None Include="Properties\PublishProfiles\WebPI.pubxml" />
494495
<None Include="Scripts\jquery-1.10.2.intellisense.js" />
495496
<Content Include="Scripts\Chart.min.js" />
496497
<Content Include="Scripts\Griffin.Yo.js" />
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
4+
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
5+
-->
6+
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
7+
<PropertyGroup>
8+
<WebPublishMethod>Package</WebPublishMethod>
9+
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
10+
<LastUsedPlatform>Any CPU</LastUsedPlatform>
11+
<SiteUrlToLaunchAfterPublish />
12+
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
13+
<ExcludeApp_Data>False</ExcludeApp_Data>
14+
<DesktopBuildPackageLocation>D:\src\gauffin.com\OneTrueError.main\WebPI</DesktopBuildPackageLocation>
15+
<PackageAsSingleFile>true</PackageAsSingleFile>
16+
<DeployIisAppPath>Default Web Site/OneTrueError</DeployIisAppPath>
17+
<PublishDatabaseSettings>
18+
<Objects xmlns="">
19+
<ObjectGroup Name="DefaultConnection" Order="1" Enabled="False">
20+
<Destination Path="" />
21+
<Object Type="DbCodeFirst">
22+
<Source Path="DBContext" DbContext="OneTrueError.Web.Models.ApplicationDbContext, OneTrueError.Web" Origin="Convention" />
23+
</Object>
24+
</ObjectGroup>
25+
<ObjectGroup Name="Db" Order="2" Enabled="False">
26+
<Destination Path="" />
27+
<Object Type="DbDacFx">
28+
<PreSource Path="Data Source=.;Initial Catalog=OneTrueError;Integrated Security=True;Connect Timeout=30" includeData="False" />
29+
<Source Path="$(IntermediateOutputPath)AutoScripts\Db_IncrementalSchemaOnly.dacpac" dacpacAction="Deploy" />
30+
</Object>
31+
<UpdateFrom Type="Web.Config">
32+
<Source MatchValue="Data Source=.;Initial Catalog=OneTrueError;Integrated Security=True;Connect Timeout=30;multipleactiveresultsets=true" MatchAttributes="$(UpdateFromConnectionStringAttributes)" />
33+
</UpdateFrom>
34+
</ObjectGroup>
35+
</Objects>
36+
</PublishDatabaseSettings>
37+
</PropertyGroup>
38+
<ItemGroup>
39+
<MSDeployParameterValue Include="$(DeployParameterPrefix)Db-Web.config Connection String">
40+
<UpdateDestWebConfig>False</UpdateDestWebConfig>
41+
</MSDeployParameterValue>
42+
<MSDeployParameterValue Include="$(DeployParameterPrefix)DefaultConnection-Web.config Connection String">
43+
<UpdateDestWebConfig>False</UpdateDestWebConfig>
44+
</MSDeployParameterValue>
45+
</ItemGroup>
46+
<ItemGroup>
47+
<_ConnectionStringsToInsert Include="DefaultConnection" />
48+
</ItemGroup>
49+
</Project>

src/Server/OneTrueError.Web/Properties/PublishProfiles/deoply.pubxml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ by editing this MSBuild file. In order to learn more about this please visit htt
1010
<LastUsedPlatform>Any CPU</LastUsedPlatform>
1111
<SiteUrlToLaunchAfterPublish />
1212
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
13-
<PrecompileBeforePublish>True</PrecompileBeforePublish>
14-
<EnableUpdateable>True</EnableUpdateable>
15-
<DebugSymbols>False</DebugSymbols>
16-
<WDPMergeOption>DonotMerge</WDPMergeOption>
1713
<ExcludeApp_Data>False</ExcludeApp_Data>
1814
<DesktopBuildPackageLocation>D:\src\gauffininteractive\OneTrueEror.WebPi\OneTrueError2.zip</DesktopBuildPackageLocation>
1915
<PackageAsSingleFile>true</PackageAsSingleFile>
@@ -36,12 +32,26 @@ by editing this MSBuild file. In order to learn more about this please visit htt
3632
<Source Path="..\..\..\..\OneTrueEror.WebPi\package\settings.sql" Transacted="False" />
3733
</Object>
3834
</ObjectGroup>
35+
<ObjectGroup Name="DefaultConnection" Order="2" Enabled="False">
36+
<Destination Path="" />
37+
<Object Type="DbCodeFirst">
38+
<Source Path="DBContext" DbContext="OneTrueError.Web.Models.ApplicationDbContext, OneTrueError.Web" Origin="Convention" />
39+
</Object>
40+
</ObjectGroup>
3941
</Objects>
4042
</PublishDatabaseSettings>
43+
<PrecompileBeforePublish>True</PrecompileBeforePublish>
44+
<EnableUpdateable>True</EnableUpdateable>
45+
<DebugSymbols>False</DebugSymbols>
46+
<WDPMergeOption>DonotMerge</WDPMergeOption>
4147
</PropertyGroup>
4248
<ItemGroup>
4349
<MSDeployParameterValue Include="$(DeployParameterPrefix)Db-Web.config Connection String">
4450
<ParameterValue>data source=.;initial catalog=OneTrueError;integrated security=True;MultipleActiveResultSets=true</ParameterValue>
4551
</MSDeployParameterValue>
52+
<MSDeployParameterValue Include="$(DeployParameterPrefix)DefaultConnection-Web.config Connection String" />
53+
</ItemGroup>
54+
<ItemGroup>
55+
<_ConnectionStringsToInsert Include="DefaultConnection" />
4656
</ItemGroup>
4757
</Project>

0 commit comments

Comments
 (0)