删除DotNetOpenAuth的依赖引用以构建Web部署 [英] Remove dependent references of DotNetOpenAuth to build for web deploy

查看:133
本文介绍了删除DotNetOpenAuth的依赖引用以构建Web部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。我从一个模板开始了一个大项目,所以它默认带有openauth。我选择使用Active Directory作为我的身份验证方案,因此我禁用了openauth,删除了页面和任何引用(包括通过nuget的服务引用和引用)。但是现在,我无法为我的发布构建,因为我收到此错误:



将文件bin \DotNetOpenAuth.AspNet.dll复制到obj \发布\ Package\PackageTmp \bin \ DotNetOpenAuth.AspNet.dll失败。找不到文件'bin \DotNetOpenAuth.AspNet.dll'。



我尝试的东西:

- 搜索任何引用,如oauth,openauth

-通过Nuget PM控制台重新安装和卸载(仍在解决剩余的自我依赖问题,这不会让我摆脱核心,因为核心依赖于它[WTFLOLGTFO?])

- 删除bin和obj文件夹,清理解决方案,重建和构建项目。

-为Visual Studio提供它想要的东西。结局不好。开始要求对OpenAuth进行微集成依赖,例如mono.math.dll和mono.math.xml,尽管几乎所有可能的OpenAuth引用都已安装。



我有不知道它在哪里或为什么要查找不存在的服务引用,并且已经有一段时间了。

Hello all. I started a big project from a template, so it came with openauth by default. I chose to use Active Directory as my authentication scheme, so I had disabled openauth, removed the pages, and any references (including service references and references via nuget). Right now though, I cannot build for my publish because I get this error:

Copying file bin\DotNetOpenAuth.AspNet.dll to obj\Release\Package\PackageTmp\bin\DotNetOpenAuth.AspNet.dll failed. Could not find file 'bin\DotNetOpenAuth.AspNet.dll'.

Things I've tried:
-"Searching" for any references like oauth, openauth
-Re-installing and uninstalling via Nuget PM Console (still fighting a remaining self-dependency issue that won't let me get rid of the core because the core depends on it [WTFLOLGTFO?])
-Deleting the bin and obj folders, cleaning the solution, rebuilding and building the project.
-Giving Visual Studio what it wants. Didn't end well. Started asking for micro, integrated dependencies to OpenAuth such as mono.math.dll and mono.math.xml despite having nearly every possible reference to OpenAuth installed.

I have no idea where or why it's looking for the service reference which doesn't exist, and hasn't for quite some time.

推荐答案

Visual Studio保留了自己的标签bin和obj文件夹的目录内容列表,在从VS端查看之后,导致错误的文件都被标记为警告,因为它们可能缺少项目。我从实际目录中删除了文件夹,而不是通过VS,所以VS可能会继续尝试引用它们,因为它不知道我搞砸了应用程序之外的那些文件夹。它现在看起来正在编译,但我会回复以验证是否就是这样。
Visual Studio keeps it's own tabs on directory contents listing of the bin and obj folders where after looking at it from the VS side, the files that kept causing errors were all flagged with warnings as having potentially missing items. I deleted the folders from the actual directory and not through VS, so it's possible that VS kept trying to reference them because it didn't know I messed with those folders outside the application. It looks to be compiling now but I'll post back to verify whether that was it.


这篇关于删除DotNetOpenAuth的依赖引用以构建Web部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆