Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

几处关于编译配置兼容的问题 #44

Closed
weiwolves opened this issue Mar 17, 2018 · 1 comment
Closed

几处关于编译配置兼容的问题 #44

weiwolves opened this issue Mar 17, 2018 · 1 comment

Comments

@weiwolves
Copy link

weiwolves commented Mar 17, 2018

目前把环境配置到mac下面,发现有几个编译配置不兼容,

Server的几个项目
Server.App
Server.Hotfix
Server.Model
MongoDB.Bson
MongoDB.Driver
MongoDB.Driver.Core

vs2017 会把代码生成在obj目录下,配置的路径是bin下面,编译时不会创建bin路径,在windows下面能正常编译生成,mac会报错 找不到路径

能否把项目的路径修改过来,如下

工程文件 *.csproj

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
     <DefineConstants>TRACE;DEBUG;NETCOREAPP2_0;SERVER</DefineConstants>
 -    <OutputPath>bin\Debug\..\..\..\..\Bin\</OutputPath>
 +    <OutputPath>obj\Debug\..\..\..\..\Bin\</OutputPath>
   </PropertyGroup>
 
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
     <DefineConstants>TRACE;RELEASE;NETCOREAPP2_0;SERVER</DefineConstants>
 -    <OutputPath>bin\Release\..\..\..\..\Bin\</OutputPath>
+    <OutputPath>obj\Release\..\..\..\..\Bin\</OutputPath>
</PropertyGroup>

@egametang
Copy link
Owner

已修改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants