小编Pet*_*nko的帖子

将.net 4.5应用程序降级到4.0

我想将.net库从框架版本4.5降级到.net 4.0.

我使用nuget安装了几个库:

  • Microsoft.AspNet.WebApi.Client及其依赖项:
  • Newtonsoft.Json
  • System.Net.Http(Microsoft .Net 4 HTTP客户端库)

我做以下事情:

  • 在我的解决方案中的每个项目的设置中,我将目标框架设置为4.0.之后我尝试重建我的解决方案但当然没有成功因为错误The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?),HTTP Client libs也是如此

  • 使用nuget ui manager我删除了依赖项并尝试重新安装.但是有一个错误Could not install package 'Microsoft.AspNet.WebApi.Client 5.1.1'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, …

.net c#

13
推荐指数
1
解决办法
2万
查看次数

升级到Rails 3.2.11后,Capistrano部署失败

我有生产Rails 3.2.3应用程序,我用它来使用capistrano进行部署.当我决定将rails升级到3.2.11时,我做了以下步骤:

  1. 在Gemfile中更改了rails版本
  2. 运行"捆绑更新rails"
  3. 从供应商/缓存,Gemfile和Gemfile.lock推送新的宝石
  4. 运行"上限生产部署"

Capistrano现在失败并出现错误:

  * 2013-01-11 15:58:25 executing `deploy:assets:precompile'
    triggering before callbacks for `deploy:assets:precompile'
  * 2013-01-11 15:58:25 executing `deploy:assets:update_asset_mtimes'
  * executing "[ -e /home/deploy/projects/otv/shared/assets/manifest.yml ] && cat /home/deploy/projects/otv/shared/assets/manifest.yml || echo"
    servers: ["xxx.xxx.99.51"]
    [xxx.xxx.99.51] executing command
    command finished in 28ms
  * executing "cd -- /home/deploy/projects/otv/releases/20130111095812 && export LANG=en_US.UTF-8 && /usr/local/bin/bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile && cp -- /home/deploy/projects/otv/shared/assets/manifest.yml /home/deploy/projects/otv/releases/20130111095812/assets_manifest.yml"
    servers: ["xxx.xxx.99.51"]
    [xxx.xxx.99.51] executing command
 ** [out :: xxx.xxx.99.51] cp: cannot stat ‘/home/deploy/projects/otv/shared/assets/manifest.yml’: No such file or directory …
Run Code Online (Sandbox Code Playgroud)

capistrano ruby-on-rails-3.2

6
推荐指数
1
解决办法
4271
查看次数

标签 统计

.net ×1

c# ×1

capistrano ×1

ruby-on-rails-3.2 ×1