安装脚本无法在Windows 8上运行(VS 2012 .Net Framework 4.5) [英] Setup scripts not working on windows 8 (VS 2012 .Net Framework 4.5)

查看:78
本文介绍了安装脚本无法在Windows 8上运行(VS 2012 .Net Framework 4.5)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个测试解决方案,该解决方案使用已启用部署的.testsettings文件.在.testsettings文件中有一个简单的批处理文件,该文件被设置为安装脚本. 部署目录(也在本地框中).该配置/设置曾经在Windows 7盒上可以正常工作,但在Windows 8盒上开始失败.从deploymentdirectorytest.txt中,我发现Configs文件夹实际上已被复制到 一个名称与实际部署目录相同的文件夹,但末尾附加了奇怪的字符:E:\<%deployment目录名称>用户名2012-12-03 14_39_09䆼ɬᮝ碻
因此,测试运行失败!

I have a test solution that uses .testsettings file which has deployment enabled. There is a simple batch file which is set as setup script in .testsettings file. (batch file tries to copy some config files from a location on the local box into the deployment directory, also on local box). This configuration/setup used to work fine on a windows 7 box but has started to fail on the windows 8 box. From the deploymentdirectorytest.txt, I have found out that the Configs folder is actually being copied into a folder which is named same as actual deployment directory but has weird characters appended to it at the end: E:\<%deployment directory name>username 2012-12-03 14_39_09䆼ɬᮝ碻
Hence, the test runs are failing!

设置批处理文件的内容:
设置> deploymentdirectorytest.txt
xcopy/s/e/i"E:\ test \ Configs" "%DeploymentDirectory%\ Configs"

Contents of setup batch file:
set > deploymentdirectorytest.txt
xcopy /s /e /i "E:\test\Configs" "%DeploymentDirectory%\Configs"

我也尝试过:
xcopy/s/e/i"E:\ test \ Configs" "%TestDeploymentDir%\ Configs"

I have also tried:
xcopy /s /e /i "E:\test\Configs" "%TestDeploymentDir%\Configs"

请告知.

-谢谢
Richa

-Thanks
Richa

推荐答案

Hello TesterForVSTFS2012,

Hello TesterForVSTFS2012,

感谢您在MSDN论坛中发帖.

Thank you for posting in the MSDN forum.

由于我们很难重现此问题,也许您可​​以与我们分享一个示例,所以我们尝试在PC上运行它.请附加您的Visual Studio测试解决方案和批处理文件,您可以将其上传到sky驱动程序,然后共享 您帖子中的下载链接.

Since it is hard for us to repro this issue, maybe you could share us a sample, we try to run it in our PC. Please attach your Visual Studio test solution and the batch file, you can upload it to the sky driver, and then share the download link in your post.

此外,请说明您现在使用哪个版本的VS2012.

感谢您的理解.

最好的问候,


这篇关于安装脚本无法在Windows 8上运行(VS 2012 .Net Framework 4.5)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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