.Net跨平台中遇到的问题小结
2016-03-31 15:10
344 查看
一:创建MVC网站,需要修改Views视图文件夹下的Web.config
二:需要添加web.config中的
三:需要删除发布文件中 roslyn文件夹 以及Microsoft.Web.Infrastructure.dll类库
四:删除一下内容,不然后提示roslyn
五:需要找到jexus中的siteconf文件夹
六:发布完成
各种mono版本:http://download.mono-project.com/sources/mono/
主要来源:http://www.cnblogs.com/gaobing/p/4955204.html
二:需要添加web.config中的
<system.web> <compilation debug="true" targetFramework="4.5"/> <httpRuntime targetFramework="4.5"/> <customErrors mode="Off"/> <globalization culture="en-us" enableClientBasedCulture="false"/> </system.web>
三:需要删除发布文件中 roslyn文件夹 以及Microsoft.Web.Infrastructure.dll类库
四:删除一下内容,不然后提示roslyn
<system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+"/> </compilers> </system.codedom>
五:需要找到jexus中的siteconf文件夹
六:发布完成
各种mono版本:http://download.mono-project.com/sources/mono/
主要来源:http://www.cnblogs.com/gaobing/p/4955204.html
相关文章推荐
- 固话+手机号码正则
- java操作文件的内容的实现
- AndroidStudio代码前面有红色的感叹号出现原因
- Linux kernel模块管理相关详解Linux kernel模块管理相关详解
- WebStorm 快捷键
- 数据库优化
- 编程修养
- MFC——9.多线程与线程同步
- C++:只用初始化列表初始化变量的几种情况
- android跨进程通信(IPC)——AIDL
- OAuth2.0 在 SSO中的应用~
- js Date
- 算法(二):查找
- Android Studio运行时finished with non-zero exit value 2或:app:transformClassesWithDexForDebug
- Ruby中Time对象的常用函数总结
- android之TabLayout实现PagerSlidingTabStrip,ViewpagerIndicator之类的效果滑动页面导航效果(类似网易新闻)
- Codeforces 366D Dima and Trap Graph 【并查集】
- 简单常用滤波算法C语言实现
- PNP型三极管与NPN型三极管区别
- delete,truncate和drop的区别