Browse Source

vs2013=>vs2015

IIS Web=>IIS Express
XmlConfig
v1.4
大石头 9 years ago
parent
commit
eb79a546ea
  1. 12
      GitCandy.sln
  2. 5
      GitCandy/Configuration/UserConfiguration.cs
  3. 6
      GitCandy/GitCandy.csproj
  4. 7
      GitCandy/Web.config

12
GitCandy.sln

@ -1,16 +1,10 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.21005.1
Microsoft Visual Studio Solution File, Format Version 13.00
# Visual Studio 2015
VisualStudioVersion = 13
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GitCandy", "GitCandy\GitCandy.csproj", "{8C65D667-BA60-4810-927A-F8AFB55D55FE}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Sql", "Sql", "{53BD70E8-2D72-428F-A4D9-8E784D0EDB83}"
ProjectSection(SolutionItems) = preProject
Sql\Create.MsSql.sql = Sql\Create.MsSql.sql
Sql\Create.Sqlite.sql = Sql\Create.Sqlite.sql
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU

5
GitCandy/Configuration/UserConfiguration.cs

@ -1,9 +1,10 @@
using System.Collections.Generic;
using NewLife.Xml;
namespace GitCandy.Configuration
{
[ConfigurationKey("UserConfiguration")]
public class UserConfiguration : ConfigurationEntry<UserConfiguration>
[XmlConfigFile("Config\\UserConfiguration.xml", 15000)]
public class UserConfiguration : XmlConfig<UserConfiguration>
{
public UserConfiguration()
{

6
GitCandy/GitCandy.csproj

@ -16,7 +16,7 @@
<AssemblyName>GitCandy</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<MvcBuildViews>true</MvcBuildViews>
<UseIISExpress>false</UseIISExpress>
<UseIISExpress>true</UseIISExpress>
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />
<IISExpressWindowsAuthentication />
@ -285,8 +285,6 @@
<Compile Include="Base\RawResult.cs" />
<Compile Include="Base\RegularExpression.cs" />
<Compile Include="Base\StringLogicalComparer.cs" />
<Compile Include="Configuration\ConfigurationEntry.cs" />
<Compile Include="Configuration\ConfigurationKeyAttribute.cs" />
<Compile Include="Configuration\GitCoreResloverAttribute.cs" />
<Compile Include="Configuration\HostKey.cs" />
<Compile Include="Configuration\HostKeyResloverAttribute.cs" />
@ -499,7 +497,7 @@
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>11422</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost/GitCandy</IISUrl>
<IISUrl>http://localhost:11422/</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>

7
GitCandy/Web.config

@ -4,17 +4,12 @@
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<connectionStrings>
<add name="GitCandyContext" connectionString="Data Source=|DataDirectory|GitCandy.db;BinaryGUID=True;" providerName="System.Data.SQLite.EF6" />
<add name="GitCandy" connectionString="Data Source=..\Data\GitCandy.db;" providerName="System.Data.SQLite" />
</connectionStrings>
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="LogPathFormat" value="~\App_Data\{0}.log" />
<add key="UserConfiguration" value="~\App_Data\config.xml" />
</appSettings>
<system.data>

Loading…
Cancel
Save