问题解决 Visual Studio 2015 无法复制文件“D:\swapfile.sys”

本文介绍了一种解决编译过程中出现的特定错误的方法。错误信息为“无法复制文件D:swapfile.sys,原因是找不到该文件”。解决方案是移除项目文件中指定的导入语句。

莫名其妙的问题。。度娘 必应统统不给力。。

还是找了谷大爷

 

严重性 代码 说明 项目 文件 行 列 类别 源 项目级别 工具 禁止显示状态
错误 无法复制文件“D:\swapfile.sys”,原因是找不到该文件。 XXX.Interface 生成 4

从项目文件顶部移除这个:

<Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props" Condition="Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.0\build\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" />

妥妥的编译通过!

 

参考:http://www.91r.net/ask/32523580.html

 

转载于:https://www.cnblogs.com/Qbit/p/6135026.html

无法登录的原因是?[13:40:28.422] Log Level: 2 [13:40:28.424] remote-ssh@0.76.1 [13:40:28.424] win32 x64 [13:40:28.429] SSH Resolver called for "ssh-remote+112.74.167.19", attempt 1 [13:40:28.429] "remote.SSH.useLocalServer": false [13:40:28.429] "remote.SSH.showLoginTerminal": false [13:40:28.430] "remote.SSH.remotePlatform": {"112.74.167.19":"linux"} [13:40:28.430] "remote.SSH.path": undefined [13:40:28.430] "remote.SSH.configFile": undefined [13:40:28.430] "remote.SSH.useFlock": true [13:40:28.430] "remote.SSH.lockfilesInTmp": false [13:40:28.430] "remote.SSH.localServerDownload": auto [13:40:28.430] "remote.SSH.remoteServerListenOnSocket": false [13:40:28.430] "remote.SSH.showLoginTerminal": false [13:40:28.430] "remote.SSH.defaultExtensions": [] [13:40:28.430] "remote.SSH.loglevel": 2 [13:40:28.431] "remote.SSH.enableDynamicForwarding": true [13:40:28.431] "remote.SSH.enableRemoteCommand": false [13:40:28.431] "remote.SSH.serverPickPortsFromRange": {} [13:40:28.431] "remote.SSH.serverInstallPath": {} [13:40:28.462] SSH Resolver called for host: 112.74.167.19 [13:40:28.462] Setting up SSH remote "112.74.167.19" [13:40:28.467] Using commit id "b3e4e68a0bc097f0ae7907b217c1119af9e03435" and quality "stable" for server [13:40:28.469] Install and start server if needed [13:40:28.471] Checking ssh with "ssh -V" [13:40:28.518] > OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2 [13:40:28.521] Running script with connection command: ssh -T -D 64092 "112.74.167.19" bash [13:40:28.524] Terminal shell path: C:\WINDOWS\System32\cmd.exe [13:40:28.703] > [?9001h[?1004h [13:40:28.703] Got some output, clearing connection timeout [13:40:29.014] > user@112.74.167.19's password:]0;C:\WINDOWS\System32\cmd.exe [13:40:29.015] Showing password prompt [13:40:30.257] Got password response [13:40:30.257] "install" wrote data to terminal: "*********" [13:40:30.273] > [13:40:30.550] > 801112208243: running [13:40:30.597] > Acquiring lock on /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/vscode-remote-lock.user.b3e4e68a0bc097f0ae7907b217c1119af9e03435 > Found existing installation at /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435... > Checking /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.log and /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.pid for a running server > Looking for server with pid: 29186 [13:40:30.613] > Found running server... > > * > * Reminder: You may only use this software with Visual Studio family products, > * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) > * > [13:40:30.628] > Checking server status on port 36681 with wget801112208243: start > exitCode==28== > listeningOn==36681== > osReleaseId==centos== > arch==x86_64== > tmpDir==/run/user/1001== > platform==linux== > unpackResult==== > didLocalDownload==0== > downloadTime==== > installTime==== > extInstallTime==== > serverStartTime==== > 801112208243: end [13:40:30.628] Received install output: exitCode==28== listeningOn==36681== osReleaseId==centos== arch==x86_64== tmpDir==/run/user/1001== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== extInstallTime==== serverStartTime==== [13:40:30.629] Server status check failed - waiting and retrying [13:40:30.642] > [13:40:31.633] Running script with connection command: ssh -T -D 64092 "112.74.167.19" bash [13:40:31.635] Terminal shell path: C:\WINDOWS\System32\cmd.exe [13:40:31.808] > [?9001h[?1004h [13:40:31.809] Got some output, clearing connection timeout [13:40:32.156] "install" terminal command done [13:40:32.157] Install terminal quit with output: [13:40:32.162] > user@112.74.167.19's password:]0;C:\WINDOWS\System32\cmd.exe [13:40:32.162] Showing password prompt [13:40:32.580] Got password response [13:40:32.580] "install" wrote data to terminal: "*********" [13:40:32.592] > [13:40:32.835] > 801112208243: running [13:40:32.878] > Acquiring lock on /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/vscode-remote-lock.user.b3e4e68a0bc097f0ae7907b217c1119af9e03435 [13:40:32.901] > Found existing installation at /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435... > Checking /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.log and /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.pid for a running server > Looking for server with pid: 29186 [13:40:32.921] > Found running server... > > * > * Reminder: You may only use this software with Visual Studio family products, > * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) > * > [13:40:32.930] > Checking server status on port 36681 with wget > > 801112208243: start > exitCode==28== > listeningOn==36681== > osReleaseId==centos== > arch==x86_64== > tmpDir==/run/user/1001== > platform==linux== > unpackResult==== > didLocalDownload==0== > downloadTime==== > installTime==== > extInstallTime==== > serverStartTime==== > 801112208243: end [13:40:32.930] Received install output: exitCode==28== listeningOn==36681== osReleaseId==centos== arch==x86_64== tmpDir==/run/user/1001== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== extInstallTime==== serverStartTime==== [13:40:32.930] Server status check failed - waiting and retrying [13:40:32.946] > [13:40:33.936] Running script with connection command: ssh -T -D 64092 "112.74.167.19" bash [13:40:33.938] Terminal shell path: C:\WINDOWS\System32\cmd.exe [13:40:34.109] > [?9001h[?1004h [13:40:34.109] Got some output, clearing connection timeout [13:40:34.457] "install" terminal command done [13:40:34.457] Install terminal quit with output: [13:40:34.459] > user@112.74.167.19's password:]0;C:\WINDOWS\System32\cmd.exe [13:40:34.459] Showing password prompt [13:40:34.951] Got password response [13:40:34.951] "install" wrote data to terminal: "*********" [13:40:34.962] > [13:40:35.208] > 801112208243: running [13:40:35.243] > Acquiring lock on /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/vscode-remote-lock.user.b3e4e68a0bc097f0ae7907b217c1119af9e03435 [13:40:35.251] > Found existing installation at /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435... > Checking /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.log and /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.pid for a running server [13:40:35.268] > Looking for server with pid: 29186 > Found running server... [13:40:35.283] > > * > * Reminder: You may only use this software with Visual Studio family products, > * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) > * > > Checking server status on port 36681 with wget > > 801112208243: start > exitCode==28== > listeningOn==36681== > osReleaseId==centos== > arch==x86_64== > tmpDir==/run/user/1001== > platform==linux== > unpackResult==== > didLocalDownload==0== > downloadTime==== > installTime==== > extInstallTime==== > serverStartTime==== > 801112208243: end [13:40:35.283] Received install output: exitCode==28== listeningOn==36681== osReleaseId==centos== arch==x86_64== tmpDir==/run/user/1001== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== extInstallTime==== serverStartTime==== [13:40:35.283] Server status check failed - waiting and retrying [13:40:35.301] > [13:40:36.289] Running script with connection command: ssh -T -D 64092 "112.74.167.19" bash [13:40:36.291] Terminal shell path: C:\WINDOWS\System32\cmd.exe [13:40:36.468] > [?9001h[?1004h [13:40:36.468] Got some output, clearing connection timeout [13:40:36.807] "install" terminal command done [13:40:36.807] Install terminal quit with output: [13:40:36.815] > user@112.74.167.19's password:]0;C:\WINDOWS\System32\cmd.exe [13:40:36.815] Showing password prompt [13:40:37.396] Got password response [13:40:37.397] "install" wrote data to terminal: "*********" [13:40:37.407] > [13:40:37.651] > 801112208243: running [13:40:37.697] > Acquiring lock on /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/vscode-remote-lock.user.b3e4e68a0bc097f0ae7907b217c1119af9e03435 [13:40:37.713] > Found existing installation at /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435... > Checking /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.log and /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.pid for a running server > Looking for server with pid: 29186 [13:40:37.731] > Found running server... > > * > * Reminder: You may only use this software with Visual Studio family products, > * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) > * > [13:40:37.745] > Checking server status on port 36681 with wget801112208243: start > exitCode==28== > listeningOn==36681== > osReleaseId==centos== > arch==x86_64== > tmpDir==/run/user/1001== > platform==linux== > unpackResult==== > didLocalDownload==0== > downloadTime==== > installTime==== > extInstallTime==== > serverStartTime==== > 801112208243: end [13:40:37.745] Received install output: exitCode==28== listeningOn==36681== osReleaseId==centos== arch==x86_64== tmpDir==/run/user/1001== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== extInstallTime==== serverStartTime==== [13:40:37.745] Server status check failed - waiting and retrying [13:40:38.756] Running script with connection command: ssh -T -D 64092 "112.74.167.19" bash [13:40:38.758] Terminal shell path: C:\WINDOWS\System32\cmd.exe [13:40:38.929] > [?9001h[?1004h [13:40:38.929] Got some output, clearing connection timeout [13:40:39.274] "install" terminal command done [13:40:39.274] Install terminal quit with output: [13:40:39.279] > user@112.74.167.19's password:]0;C:\WINDOWS\System32\cmd.exe [13:40:39.280] Showing password prompt [13:40:39.886] Got password response [13:40:39.886] "install" wrote data to terminal: "*********" [13:40:39.897] > [13:40:40.139] > 801112208243: running [13:40:40.176] > Acquiring lock on /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/vscode-remote-lock.user.b3e4e68a0bc097f0ae7907b217c1119af9e03435 [13:40:40.195] > Found existing installation at /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435... [13:40:40.208] > Checking /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.log and /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.pid for a running server > Looking for server with pid: 29186 > Found running server... [13:40:40.223] > > * > * Reminder: You may only use this software with Visual Studio family products, > * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) > * > > Checking server status on port 36681 with wget > > 801112208243: start > exitCode==28== > listeningOn==36681== > osReleaseId==centos== > arch==x86_64== > tmpDir==/run/user/1001== > platform==linux== > unpackResult==== > didLocalDownload==0== > downloadTime==== > installTime==== > extInstallTime==== > serverStartTime==== > 801112208243: end [13:40:40.223] Received install output: exitCode==28== listeningOn==36681== osReleaseId==centos== arch==x86_64== tmpDir==/run/user/1001== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== extInstallTime==== serverStartTime==== [13:40:40.223] Server status check failed - waiting and retrying [13:40:40.239] > [13:40:41.234] Running script with connection command: ssh -T -D 64092 "112.74.167.19" bash [13:40:41.236] Terminal shell path: C:\WINDOWS\System32\cmd.exe [13:40:41.408] > [?9001h[?1004h [13:40:41.408] Got some output, clearing connection timeout [13:40:41.761] "install" terminal command done [13:40:41.762] Install terminal quit with output: [13:40:41.766] > user@112.74.167.19's password:]0;C:\WINDOWS\System32\cmd.exe [13:40:41.766] Showing password prompt [13:40:42.369] Got password response [13:40:42.369] "install" wrote data to terminal: "*********" [13:40:42.379] > [13:40:42.633] > 801112208243: running [13:40:42.682] > Acquiring lock on /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/vscode-remote-lock.user.b3e4e68a0bc097f0ae7907b217c1119af9e03435 [13:40:42.702] > Found existing installation at /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435... > Checking /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.log and /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.pid for a running server > Looking for server with pid: 29186 [13:40:42.717] > Found running server... > > * > * Reminder: You may only use this software with Visual Studio family products, > * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) > * > [13:40:42.733] > Checking server status on port 36681 with wget801112208243: start > exitCode==28== > listeningOn==36681== > osReleaseId==centos== > arch==x86_64== > tmpDir==/run/user/1001== > platform==linux== > unpackResult==== > didLocalDownload==0== > downloadTime==== > installTime==== > extInstallTime==== > serverStartTime==== > 801112208243: end [13:40:42.733] Received install output: exitCode==28== listeningOn==36681== osReleaseId==centos== arch==x86_64== tmpDir==/run/user/1001== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== extInstallTime==== serverStartTime==== [13:40:42.733] Server status check failed - waiting and retrying [13:40:43.742] Running script with connection command: ssh -T -D 64092 "112.74.167.19" bash [13:40:43.743] Terminal shell path: C:\WINDOWS\System32\cmd.exe [13:40:43.917] > [?9001h[?1004h [13:40:43.917] Got some output, clearing connection timeout [13:40:44.256] "install" terminal command done [13:40:44.256] Install terminal quit with output: [13:40:44.261] > user@112.74.167.19's password:]0;C:\WINDOWS\System32\cmd.exe [13:40:44.261] Showing password prompt [13:40:45.151] Got password response [13:40:45.151] "install" wrote data to terminal: "*********" [13:40:45.162] > [13:40:45.411] > 801112208243: running [13:40:45.451] > Acquiring lock on /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435/vscode-remote-lock.user.b3e4e68a0bc097f0ae7907b217c1119af9e03435 [13:40:45.473] > Found existing installation at /home/user/.vscode-server/bin/b3e4e68a0bc097f0ae7907b217c1119af9e03435... > Checking /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.log and /home/user/.vscode-server/.b3e4e68a0bc097f0ae7907b217c1119af9e03435.pid for a running server > Looking for server with pid: 29186 [13:40:45.490] > Found running server... > > * > * Reminder: You may only use this software with Visual Studio family products, > * as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057) > * > [13:40:45.504] > Checking server status on port 36681 with wget [13:40:45.517] > > 801112208243: start > exitCode==28== > listeningOn==36681== > osReleaseId==centos== > arch==x86_64== > tmpDir==/run/user/1001== > platform==linux== > unpackResult==== > didLocalDownload==0== > downloadTime==== > installTime==== > extInstallTime==== > serverStartTime==== > 801112208243: end [13:40:45.518] Received install output: exitCode==28== listeningOn==36681== osReleaseId==centos== arch==x86_64== tmpDir==/run/user/1001== platform==linux== unpackResult==== didLocalDownload==0== downloadTime==== installTime==== extInstallTime==== serverStartTime==== [13:40:45.518] Server status check failed - waiting and retrying [13:40:46.532] Running script with connection command: ssh -T -D 64092 "112.74.167.19" bash [13:40:46.533] Terminal shell path: C:\WINDOWS\System32\cmd.exe [13:40:46.703] > [?9001h[?1004h [13:40:46.703] Got some output, clearing connection timeout [13:40:47.039] "install" terminal command done [13:40:47.040] Install terminal quit with output: [13:40:47.045] > user@112.74.167.19's password:]0;C:\WINDOWS\System32\cmd.exe [13:40:47.045] Showing password prompt [13:40:47.641] Password dialog canceled [13:40:47.642] "install" terminal command canceled [13:40:47.642] Resolver error: Error: Connecting was canceled at f.Canceled (c:\Users\forest\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:586237) at c:\Users\forest\.vscode\extensions\ms-vscode-remote.remote-ssh-0.76.1\out\extension.js:1:681160 [13:40:47.646] ------
08-14
根据C:\gkoudai\口袋贵金属.exe软件,在GkoudaiDataCollector.py编写使用DirectX钩子技术(D3D11的hook)来自动获取口袋贵金属.exe进程和窗口句柄为00050412(Intermediate D3D Window)中的的卖价、买价格和交易量的代码并实时显示在程序面板上的优化以下方案:口袋贵金属.exe 行情数据采集方案(DirectX Hook 实现) 核心思路:通过注入 DLL 挂钩目标进程的 D3D 渲染管线(优先 D3D9,兼容主流桌面应用),拦截绘制调用后解析显存/绘制数据中的行情字段,实时回显到面板。 一、开发环境 - 语言:Python 3.8+(主面板)+ C++ 17(D3D Hook DLL,Python 无法直接实现底层挂钩) - 依赖: - Python: pywin32 (进程/窗口操作)、 PyQt5 (实时面板)、 ctypes (调用 DLL) - C++:DirectX SDK(D3D11 库)、MinHook(挂钩框架)、Detours(备选挂钩库) 二、核心实现步骤(分模块) 1. Python 主程序(GkoudaiDataCollector.py) 负责进程注入、窗口句柄绑定、数据接收和面板显示: 2. C++ D3D Hook DLL(核心逻辑) 负责注入进程、挂钩 D3D 绘制函数(如  EndScene )、解析行情数据: 三、关键说明 1. D3D 版本适配:优先 D3D9(口袋贵金属这类桌面软件常用),若检测到 D3D10/11,需替换对应接口(如  ID3D11DeviceContext::Present )。 2. 数据解析优化:示例中用正则解析显存文本,实际需用 Spy++ 抓取行情控件的坐标/文本格式,或通过 D3D 绘制对象遍历(更精准)。 3. 注入安全:需关闭目标软件的反作弊(若有),否则注入可能被拦截;建议以管理员权限运行采集程序。 4. 稳定性:Hook 可能导致目标软件崩溃,需添加异常捕获和资源释放逻辑。 四、编译与运行步骤 1. 编译 C++ DLL:用 Visual Studio 配置 DirectX SDK 和 MinHook,编译为 32/64 位 DLL(匹配目标软件架构)。 2. 放置 DLL 与 Python 脚本同目录,运行  GkoudaiDataCollector.py (需管理员权限)。 3. 确保口袋贵金属.exe 已启动,且窗口句柄为  0x00050412 (若句柄变化,需在 Python 中添加窗口查逻辑)。
11-11
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值