Skip to content

Commit

Permalink
Update project files and configurations
Browse files Browse the repository at this point in the history
Updated `Site.csproj` to include new content files and modify dependencies. Added and removed various `Web.config` related files. Removed `Web.Babak 1.config`. Added `Web.Debug.config`. Modified `Web.Local Files 3.config` to include `appSettings` and remove example code. Updated `Web.Release.config` and `Web.Standalone.config` to correct XML encoding, fix typos, and adjust content.
  • Loading branch information
glittle committed Jan 16, 2025
1 parent 600931b commit ffde4b8
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 103 deletions.
28 changes: 12 additions & 16 deletions Site/Site.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -1212,26 +1212,29 @@
<DependentUpon>ImportBallots.cshtml</DependentUpon>
</Content>
<Content Include="Views\Public\Privacy.cshtml.less" />
<None Include="Web.Babak 1.config">
<Content Include="Xsd\CdnBallotImport.xsd">
<SubType>Designer</SubType>
</Content>
<Content Include="Web.config" />
<None Include="Web.Debug.config">
<DependentUpon>Web.config</DependentUpon>
</None>
<None Include="Web.Local Files 3.config">
<None Include="Web.Local Files 3.config" >
<DependentUpon>Web.config</DependentUpon>
</None>
<None Include="Web.Release.config">
<DependentUpon>Web.config</DependentUpon>
</None>
<None Include="Web.Standalone.config">
<SubType>Designer</SubType>
<DependentUpon>Web.config</DependentUpon>
</None>
<None Include="Web.TallyJ v3 Prod.config">
<None Include="Web.TallyJ v3 Prod.config" >
<DependentUpon>Web.config</DependentUpon>
</None>
<None Include="Web.TallyJ v3 UAT.config">
<None Include="Web.TallyJ v3 UAT.config" >
<DependentUpon>Web.config</DependentUpon>
</None>
<Content Include="Xsd\CdnBallotImport.xsd">
<SubType>Designer</SubType>
</Content>
<None Include="Web.Win22-SA1.config">
<None Include="Web.Win22-SA1.config" >
<DependentUpon>Web.config</DependentUpon>
</None>
</ItemGroup>
Expand Down Expand Up @@ -1305,13 +1308,6 @@
<Content Include="Views\Setup\Setup.cshtml.js">
<DependentUpon>Setup.cshtml</DependentUpon>
</Content>
<Content Include="Web.config">
<SubType>Designer</SubType>
</Content>
<Content Include="Web.Release.config">
<DependentUpon>Web.config</DependentUpon>
<SubType>Designer</SubType>
</Content>
<Content Include="Content\Site.less" />
<Content Include="Scripts\AjaxLogin.js" />
<Content Include="Images\accent.png" />
Expand Down
42 changes: 0 additions & 42 deletions Site/Web.Babak 1.config

This file was deleted.

30 changes: 30 additions & 0 deletions Site/Web.Debug.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>

<!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 -->

<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an attribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<!--
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>
14 changes: 2 additions & 12 deletions Site/Web.Local Files 3.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,8 @@
<!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 -->

<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an attribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->

<appSettings xdt:Transform="SetAttributes(file)" file="App_Data\AppSettings.config">
</appSettings>
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<customErrors mode="RemoteOnly" xdt:Transform="SetAttributes(mode)"/>
Expand Down
26 changes: 10 additions & 16 deletions Site/Web.Release.config
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>

<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 -->

<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an atrribute "name" that has a value of "MyDB".
finds an attribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->

<system.web>
<!--<sessionState xdt:Transform="Replace" cookieless="false" regenerateExpiredSessionId="true" mode="Custom"
customProvider="MemcachedSessionProvider">
<providers>
<add name="MemcachedSessionProvider"
type="MemcachedProviders.Session.SessionStateProvider,MemcachedProviders"
dbType="none" />
</providers>
</sessionState>-->
</system.web>

<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<!--
In the example below, the "Replace" transform will replace the `entire
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
Expand Down
27 changes: 10 additions & 17 deletions Site/Web.Standalone.config
Original file line number Diff line number Diff line change
@@ -1,30 +1,23 @@
<?xml version="1.0"?>
<?xml version="1.0" encoding="utf-8"?>

<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 -->

<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an attribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<connectionStrings>
<add name="MainConnection3"
connectionString="Connect Timeout=120;Data Source=.\SQLEXPRESS;Database=TallyJ;Integrated Security=True;Min Pool Size=1;MultipleActiveResultSets=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>

<appSettings>
<add key="Environment" value="Local" xdt:Transform="SetAttributes(value)"
xdt:Locator="Match(key)"/>
<add key="UseProductionFiles" value="true" xdt:Transform="SetAttributes(value)"
xdt:Locator="Match(key)"/>
</appSettings>

<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<!--
In the example below, the "Replace" transform will replace the `entire
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
Expand All @@ -35,4 +28,4 @@
</customErrors>
-->
</system.web>
</configuration>
</configuration>

0 comments on commit ffde4b8

Please sign in to comment.