Skip to content

Commit 7e5e287

Browse files
committed
Converted TodoRestApi to .csproj
1 parent a9906c6 commit 7e5e287

5 files changed

Lines changed: 40 additions & 11372 deletions

File tree

samples/features/json/todo-app/dotnet-rest-api/TodoRestWebAPI.xproj

Lines changed: 0 additions & 19 deletions
This file was deleted.

samples/features/json/todo-app/dotnet-rest-api/appsettings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@
66
"System": "Information",
77
"Microsoft": "Information"
88
}
9+
},
10+
"ConnectionStrings": {
11+
"TodoDb": "Server=.\\SQLEXPRESS;Database=TodoDb;Integrated Security=True"
912
}
1013
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<Project Sdk="Microsoft.NET.Sdk.Web">
2+
3+
<PropertyGroup>
4+
<TargetFrameworks>netcoreapp1.0;net46</TargetFrameworks>
5+
<PreserveCompilationContext>true</PreserveCompilationContext>
6+
<AssemblyName>dotnet-rest-api</AssemblyName>
7+
<OutputType>Exe</OutputType>
8+
<PackageId>dotnet-rest-api</PackageId>
9+
<RuntimeFrameworkVersion Condition=" '$(TargetFramework)' == 'netcoreapp1.0' ">1.0.4</RuntimeFrameworkVersion>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<None Update="Views">
14+
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
15+
</None>
16+
</ItemGroup>
17+
18+
<ItemGroup>
19+
<PackageReference Include="Belgrade.Sql.Client" Version="0.3.0" />
20+
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.0.3" />
21+
<PackageReference Include="Microsoft.AspNetCore.Server.IISIntegration" Version="1.0.2" />
22+
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="1.0.3" />
23+
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="1.0.2" />
24+
<PackageReference Include="Microsoft.Extensions.Configuration.FileExtensions" Version="1.0.2" />
25+
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="1.0.2" />
26+
<PackageReference Include="Microsoft.Extensions.Logging" Version="1.0.2" />
27+
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="1.0.2" />
28+
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.0.2" />
29+
<PackageReference Include="System.Data.SqlClient" Version="4.1.0" />
30+
</ItemGroup>
31+
32+
<ItemGroup Condition=" '$(TargetFramework)' == 'net46' ">
33+
<Reference Include="System" />
34+
<Reference Include="Microsoft.CSharp" />
35+
</ItemGroup>
36+
37+
</Project>

samples/features/json/todo-app/dotnet-rest-api/project.json

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)