I've written a post build script for my visual studio project
copy "$(TargetDir)ReportTemplates\*.*" "$(TargetDir)Excel\"
del /q "$(TargetDir)ReportTemplates"
and in the build output I get
V:\project\ReportTemplates\CRC150.xls
V:\project\ReportTemplates\SR558.xls
V:\project\ReportTemplates\SR559.xls
3 file(s) copied.
Deleted file - V:\project\ReportTemplates\CRC150.xls
Deleted file - V:\project\ReportTemplates\SR558.xls
Deleted file - V:\project\ReportTemplates\SR559.xls
However when I got take a look in the directory the files have copied, but they are still there in the original location.
Anyone seen this before?
Maybe this files are readonly, try adding /f - force in post build script. Also check if this files are not opened by your application or excel reader because this could be reason why you cant delete them.
Related
I am trying to make a naoqi package with qipkg (I dont know if this problem is specific to aldebaran naoqi or if it is a general windows problem)
qipkg make-package Pepper-Demo.pml
but I get the folowing error:
NotInPath Could not find executable: lrelease
qipkg deploy-package is working as it should.
I solved it with the folowing steps:
Check if there is a .exe file called lrelease in the folder at:
C:\Program Files (x86)\Softbank Robotics\Choregraphe Suite 2.5\bin
If not, search for the file on your computer using search in file explorer.
The error message displayed in which folders it searched for.
Go to the first folder it searched in (or create it) and paste the lrelease file.
I'm running into Unauthorized issues with our new TFS build templates on the build machine when TFS attempts to build our solution - multi-proc is causing issues and after days of researching/troubleshooting, I'd like to try and set a pre and post build event to mark all files/folders as NOT read-only. I have this:
attrib -r "$(ProjectDir)*.*"
But I'm not sure that this will work as expected (all folders/files/subfolders etc).
you forgot call, this should work:
call attrib -r "$(ProjectDir)*.*" /s
I'm using Genexus Ev2 U5 build 80183 with .net/web environment.
After running a rebuild all I got the error:
CS2001: Source file 'GxWebStd.cs' could not be found.
Deleting *.ari, .00 and gxobjectcollection.cs files and doing a rebuild all, doesn't fix the issue.
Any help with this issue will be very appreciated.
Leonardo,
Try another rebuild all (seriously), but before doing it:
Delete *.ARI form the root directory of your KB
Delete all files from CsharpModel directory. Or better, delete the directory all below it.
Delete all files with the extension .SPC from your KBs subdirectory
After the rebuild all finishes there can´t be any .SPC files in your KB´s subdirectories.
I hope this fix your problem.
When I add Sparrow.Chart.WinRT.45 through NuGet package manager, upon attempting to compile, I am faced with
Error 7 Payload file 'C:\Repository\Application\packages\Sparrow.Chart.WinRT.13.1.0.114\lib\netcore45\Sparrow.Chart.WinRT.45\Sparrow.Chart.WinRT.45\Legend\Legend.xaml' does not exist. Electroencephalograph
Error 8 Payload file 'C:\Repository\Application\packages\Sparrow.Chart.WinRT.13.1.0.114\lib\netcore45\Sparrow.Chart.WinRT.45\Sparrow.Chart.WinRT.45\Themes\generic.xaml' does not exist. Electroencephalograph
Error 9 Payload file 'C:\Repository\Application\packages\Sparrow.Chart.WinRT.13.1.0.114\lib\netcore45\Sparrow.Chart.WinRT.45\Sparrow.Chart.WinRT.45\Themes\Styles.xaml' does not exist. Electroencephalograph
Any ideas?
In case if you couldn't figured out still, the path to the .xaml files are wrong. If you check the packages you will see that it has one Sparrow.Chart.WinRT.45\ folder, but the VS search them in Sparrow.Chart.WinRT.45\Sparrow.Chart.WinRT.45. So you should create a folder in the packages folder and copy those files to there.
I'm using setup.exe and setupbld.exe (from %WixProramFolder%\bin)to make a
bootstrapper for my installer. Everything is ok except:
I want to get current directory of setup.exe but:
When I use property "CURRENTDIRECTORY", I will get wrong value if I run
command line in cmd.exe: "C:>"D:\setup.exe"". "CURRENTDIRECTORY" is "C:\"
but "D:\" is true.
When I use property "SOURCEDIR", setup.exe will extract setup.msi to
"%Temp%{ProductID}\setup.msi" and "SOURCEDIR" is "%Temp%{ProductID}\" but
expected is "D:\"
Anybody can help me? It make me headache this time :-(
Sorry about my English.
I had this same issue last week with a DB backup that I needed to restore as part of the install. I didn't want to include in the installer as it is likely that it will be updated and even when compressed is ~168Mb.
In the end I included the file into the installer so that it got installed to the application install directory and set Compressed="no" on the file so it is an external dependency. This is not ideal but the only way I could get it to work.