提交 03196cdf 编写于 作者: S Shay Rojansky

Build fix

Removed runtimes section from project.json, was necessary to get VS
to build. Added <CopyNuGetImplementations> to csproj instead.

dotnet cli build works now, but VS doesn't copy dependent DLLs...
Wait for official RC2 release with VS support.
上级 9e8b86e2
......@@ -13,6 +13,9 @@
<AssemblyName>Npgsql.EntityFrameworkCore.PostgreSQL.Design</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- The following stops VS from complaining about runtimes in project.json, see
https://github.com/Microsoft/msbuild/issues/394 -->
<CopyNuGetImplementations>false</CopyNuGetImplementations>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
......@@ -85,4 +88,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
\ No newline at end of file
</Project>
......@@ -14,9 +14,6 @@
"keyFile": "../../Npgsql.snk",
"warningsAsErrors": true
},
"runtimes": {
"win": {}
},
"dependencies" : {
"Microsoft.EntityFrameworkCore": "1.0.0-rc2-*",
"Microsoft.EntityFrameworkCore.Relational": "1.0.0-rc2-*",
......
......@@ -13,6 +13,9 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\..\Npgsql.snk</AssemblyOriginatorKeyFile>
<TargetFrameworkProfile />
<!-- The following stops VS from complaining about runtimes in project.json, see
https://github.com/Microsoft/msbuild/issues/394 -->
<CopyNuGetImplementations>false</CopyNuGetImplementations>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
......@@ -123,4 +126,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
\ No newline at end of file
</Project>
......@@ -14,9 +14,6 @@
"keyFile": "../../Npgsql.snk",
"warningsAsErrors": true
},
"runtimes": {
"win": {}
},
"dependencies" : {
"Microsoft.EntityFrameworkCore": "1.0.0-rc2-*",
"Microsoft.EntityFrameworkCore.Relational": "1.0.0-rc2-*",
......
......@@ -11,6 +11,9 @@
<AssemblyName>Npgsql.EntityFrameworkCore.PostgreSQL.Design.FunctionalTests</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- The following stops VS from complaining about runtimes in project.json, see
https://github.com/Microsoft/msbuild/issues/394 -->
<CopyNuGetImplementations>false</CopyNuGetImplementations>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
......@@ -177,4 +180,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
\ No newline at end of file
</Project>
{
"version": "0.0.0",
"runtimes": {
"win": {}
},
"content": [
"ReverseEngineering/**/*.expected",
"ReverseEngineering/**/*.sql"
......
......@@ -12,6 +12,9 @@
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
<!-- The following stops VS from complaining about runtimes in project.json, see
https://github.com/Microsoft/msbuild/issues/394 -->
<CopyNuGetImplementations>false</CopyNuGetImplementations>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
......@@ -117,4 +120,4 @@
<Content Include="Northwind.sql" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
</Project>
{
"version": "0.0.0",
"content": "**/*.sql",
"runtimes": {
"win": {}
},
"dependencies": {
"Microsoft.EntityFrameworkCore": "1.0.0-rc2-*",
"Microsoft.EntityFrameworkCore.Relational": "1.0.0-rc2-*",
......
......@@ -11,6 +11,9 @@
<AssemblyName>Npgsql.EntityFrameworkCore.PostgreSQL.Tests</AssemblyName>
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<!-- The following stops VS from complaining about runtimes in project.json, see
https://github.com/Microsoft/msbuild/issues/394 -->
<CopyNuGetImplementations>false</CopyNuGetImplementations>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
......@@ -66,4 +69,4 @@
<Target Name="AfterBuild">
</Target>
-->
</Project>
\ No newline at end of file
</Project>
{
"version": "0.0.0",
"runtimes": {
"win": {}
},
"dependencies": {
"Microsoft.Extensions.Logging": "1.0.0-*",
"Microsoft.EntityFrameworkCore": "1.0.0-rc2-*",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册