R - spaces in path to executable - r

I am trying to run Rscript.exe from the command line. It is installed in:
D:\Program Files\Microsoft\R Client\R_SERVER\bin\x64. I have added this location to my PATH.
When I run
Rscript --version
I get the following:
'D:\Program' is not recognized as an internal or external command,
operable program or batch file.
It is working fine from RStudio. Can't seem to find a solution other than installing in a separate location without spaces in the path name.
EDIT:
where R: D:\Program Files\Microsoft\R Client\R_SERVER\bin\x64\R.exe
where rscript: D:\Program Files\Microsoft\R Client\R_SERVER\bin\x64\Rscript.exe
set PATH:
Path=C:\Program Files\Microsoft MPI\Bin\;C:\ProgramData\Oracle\Java\javapath;D:\Program Files\Python36\Scripts\;D:\Program Files\Python36\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;D:\Program Files\Git\cmd;D:\Program Files\nodejs\;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;D:\Program Files (x86)\Yarn\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;D:\Program Files\MySQL\MySQL Utilities 1.6\;D:\Program Files\CMake\bin;C:\Users\affan.shahid\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Users\affan.shahid\AppData\Roaming\npm;C:\Users\affan.shahid\AppData\Local\Yarn\bin;D:\Program Files\Microsoft\R Client\R_SERVER\bin\x64;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW

Related

Xamarin Azure pipelines: Error XA3007: Could not link native shared library: libxamarin-app.so

I am trying to build an Android apk from our Xamarin.Forms app in Azure pipelines but the job fails with the following error:
_CreateApplicationSharedLibraries:
[aarch64-linux-android-ld.EXE stderr] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\ndk\aarch64-linux-android-ld.EXE: cannot find obj\\110\android\typemaps.arm64-v8a.o: No such file or directory
[aarch64-linux-android-ld.EXE stderr] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\ndk\aarch64-linux-android-ld.EXE: cannot find obj\\110\android\environment.arm64-v8a.o: No such file or directory
[aarch64-linux-android-ld.EXE stderr] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\ndk\aarch64-linux-android-ld.EXE: cannot find obj\\110\android\compressed_assemblies.arm64-v8a.o: No such file or directory
[i686-linux-android-ld.EXE stderr] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\ndk\i686-linux-android-ld.EXE: cannot find obj\\110\android\typemaps.x86.o: No such file or directory
[i686-linux-android-ld.EXE stderr] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\ndk\i686-linux-android-ld.EXE: cannot find obj\\110\android\environment.x86.o: No such file or directory
[i686-linux-android-ld.EXE stderr] C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\ndk\i686-linux-android-ld.EXE: cannot find obj\\110\android\compressed_assemblies.x86.o: No such file or directory
##[error]C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1900,3): Error XA3007: Could not link native shared library: libxamarin-app.so
I am using Xamarin.Forms 5.0.0.2012. The only documentation I can find is here but it does not provide a solution. Below is the yml I am using, from this documentation. Any ideas on how to fix this?
pool:
vmImage: 'windows-2019'
variables:
buildConfiguration: 'Release'
outputDirectory: '$(build.binariesDirectory)/$(buildConfiguration)'
steps:
- task: NuGetToolInstaller#1
- task: NuGetCommand#2
inputs:
restoreSolution: '**/*.sln'
- task: XamarinAndroid#1
inputs:
projectFile: '**/*droid*.csproj'
outputDirectory: '$(outputDirectory)'
configuration: '$(buildConfiguration)'
msbuildVersionOption: '16.0'
- task: AndroidSigning#3
inputs:
apksign: false
zipalign: false
apkFiles: '$(outputDirectory)/*.apk'
- task: PublishBuildArtifacts#1
inputs:
pathtoPublish: '$(outputDirectory)/*.apk'

Why can't Qt Creator find the Windows 10 SDK headers?

I've installed Qt 5.14.2 with 64-bit MSVC libraries and Qt Creator 4.12.1. When I attempt to build any of the example projects, I get the following error:
C1083: Cannot open include file: 'stddef.h': No such file or directory.
I've already installed Visual Studio, along with UCRT and the Windows 10 SDK. I've verified that stddef.h does in fact exist inside the SDK. The problem appears to be that vcvarsall.bat (or vcvars64.bat) does not add the include directories for the SDK.
Here are the environment variables that are assigned by vcvars64.bat:
CommandPromptType=Native
DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\
ExtensionSdkDir=C:\Program Files (x86)\Microsoft SDKs\Windows Kits\10\ExtensionSDKs
Framework40Version=v4.0
FrameworkDir=C:\Windows\Microsoft.NET\Framework64\
FrameworkDir64=C:\Windows\Microsoft.NET\Framework64\
FrameworkVersion=v4.0.30319
FrameworkVersion64=v4.0.30319
INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\include;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\include;
LIB=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\lib\x64;
LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\ATLMFC\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\lib\x86\store\references;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;
Path=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\\Extensions\Microsoft\IntelliCode\CLI;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual…
Platform=x64
VCIDEInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\VC\
VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\
VCToolsInstallDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.26.28801\
VCToolsRedistDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.26.28720\
VCToolsVersion=14.26.28801
VisualStudioVersion=16.0
VS160COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\
VSCMD_ARG_app_plat=Desktop
VSCMD_ARG_HOST_ARCH=x64
VSCMD_ARG_TGT_ARCH=x64
VSCMD_VER=16.6.0
VSINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\
WindowsLibPath=References\CommonConfiguration\Neutral
WindowsSDKLibVersion=winv6.3\
WindowsSDKVersion=\
__DOTNET_ADD_64BIT=1
__DOTNET_PREFERRED_BITNESS=64
__VSCMD_PREINIT_PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\windows\System32\OpenSSH\;C:\Program Files\Perforce;C:\Program Files\ServiceNow;C:\Program Files\PuTTY\;C:\Program Files\PowerShell\7\;C:\Program Files\Git\cmd;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\dotnet\;C:\Program Files\nodejs\;C:\Users\[REDACTED]\AppData\Local\Microsoft\WindowsApps;;C:\Users\[REDACTED]\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\[REDACTED]\AppData\Roaming\npm
__VSCMD_script_err_count=0
stddef.h is in C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\ucrt, but that path is not added to INCLUDE.
How is Qt Creator supposed to find the Windows SDK?
I recently had the exact same problem.
It's working in Visual Studio 2019 but not in Qt Creator and neither on the commandline.
The reason for my problem was missing rights to access the registry. To get some hints on your side just run the following:
set VSCMD_DEBUG=3
vcvars64.bat > log.txt
My output were multiple of these errors:
"ERROR: Registry editing has been disabled by your administrator."
Checking log.txt one could see that it was indeed not setting WindowsSdkDir properly.
I had similar issue, I don't know the exact cause but the workaround I followed is (I am building using QtCreator) adding following to .pro file.
INCLUDEPATH += "C:/Program Files (x86)/Windows Kits/10/Include/10/shared"
INCLUDEPATH += "C:/Program Files (x86)/Windows Kits/10/Include/10/um"
INCLUDEPATH += "C:/Program Files (x86)/Windows Kits/10/Include/10/ucrt"
LIBS += -L"C:/Program Files (x86)/Windows Kits/10/Lib/10/ucrt/x64"
LIBS += -L"C:/Program Files (x86)/Windows Kits/10/Lib/10/um/x64"

ASP.NET Core not finding npm

I have a new Asp.NET Core Web / React application.
When I try to run it I get the error:
An unhandled exception occurred while processing the request.
AggregateException: One or more errors occurred. (One or more errors
occurred. (Failed to start 'npm'. To resolve this:.
[1] Ensure that 'npm' is installed and can be found in one of the PATH
directories.
I have a PATH variable set up:
C:\Program Files\nodejs
In this folder is node.exe
Do I need to install something into the project?
I have made no other changes to the project since creating it from the VS Web Application template. I just want it to run...
The full path error list:
Current PATH enviroment variable is: C:\Program
Files\Android\jdk\microsoft_dist_openjdk_1.8.0.9\bin;C:\Program
Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Intel\iCLS
Client\;C:\Program Files\Intel\iCLS
Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program
Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program
Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
(x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program
Files (x86)\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files
(x86)\Microsoft SQL Server\130\DTS\Binn\;C:\Program Files
(x86)\Microsoft SQL Server\130\Tools\Binn\ManagementStudio\;C:\Program
Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program
Files\TortoiseHg\;C:\Program Files (x86)\PKWARE\pkzipc;C:\Program
Files\Microsoft\Web Platform Installer\;C:\Program
Files\dotnet\;C:\Program Files\7-Zip;C:\Program
Files\OpenVPN\bin;C:\Program Files\nodejs\;C:\Program
Files\Mercurial\;C:\Program Files\Intel\WiFi\bin\;C:\Program
Files\Common Files\Intel\WirelessCommon\;C:\Program Files\010
Editor;C:\Program Files (x86)\Microsoft Emulator
Manager\1.0\;C:\Scripts;C:\Program Files\Microsoft SQL Server\Client
SDK\ODBC\130\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\130\DTS\Binn\;C:\Program Files
(x86)\GtkSharp\2.12\bin;C:\ProgramData\chocolatey\bin;C:\Program
Files\Java\jdk1.8.0_162\bin;C:\clojure-clr-1.8.0-Release 4.0\Release
4.0\clojure;C:\Program Files\PuTTY\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
Server\140\DTS\Binn\;C:\Program Files\Microsoft SQL
Server\140\DTS\Binn\;C:\Program Files\Git\cmd;C:\Program Files
(x86)\Windows Kits\10\Windows Performance
Toolkit\;C:\Users\stuarts.cargo\bin;C:\Program Files (x86)\Elm
Platform\0.18\bin;C:\Users\stuarts\AppData\Local\Programs\Python\Python35\Scripts\;C:\Users\stuarts\AppData\Local\Programs\Python\Python35\;C:\Users\stuarts\AppData\Local\Microsoft\WindowsApps;C:\Nuget\nuget.exe;C:\utils;C:\Users\stuarts\AppData\Roaming\Python35\Scripts;C:\Program
Files\7-Zip;C:\Users\stuarts\AppData\Roaming\npm;C:\Program
Files\Intel\WiFi\bin\;C:\Program Files\Common
Files\Intel\WirelessCommon\;C:\Users\stuarts\AppData\Local\Programs\Fiddler;C:\Scripts;C:\Nuget;C:\Program
Files\Microsoft VS
Code\bin;C:\Users\stuarts.lein\bin;C:\Users\stuarts\AppData\Local\atom\bin;C:\clojure-clr-1.8.0-Release
4.0\Release 4.0;C:\Users\stuarts.dotnet\tools;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2
Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program
Files\nodejs;
You can see node is the last one...

culture folder is not created during compilation using satellite assembly

I am working on satellite assembly.In future we need to use resource "DLL" instead of .Resx file of all culture.everything is fine but when i am compile the project using batch,few culture folder is not created inside obj\debug.
please see in below where only fr-FR and gu-IN folder is created.why pa_IN folder is not created?
i did not understand why this problem is occurred
.please guide or suggest me,what should i have to do?i need to improve code or need extra setting?
below is my compile code:
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.296]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 9/12/2013 3:24:35 PM.
Project "D:\MyProject\DynamicResourceDLL.csproj" on node 1 (rebuild target(s)).
CoreClean:
Deleting file "D:\MyProject\bin\Debug\makeDll.dll".
Deleting file "D:\MyProject\bin\Debug\makeDll.pdb".
Deleting file "D:\MyProject\obj\Debug\makeDll.dll".
Deleting file "D:\MyProject\obj\Debug\makeDll.pdb".
CoreResGen:
"c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\resgen.exe" /useSourcePath /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Microsoft.CSharp.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll" /r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll" /compile Circle\Oval5\Oval5.resx,obj\Debug\makeDll.Circle.Oval5.Oval5.resources Circle\Oval5\Oval5.pa_IN.resx,obj\Debug\makeDll.Circle.Oval5.Oval5.pa_IN.resources Circle\Oval5\Oval5.fr-FR.resx,obj\Debug\makeDll.Circle.Oval5.Oval5.fr-FR.resources Circle\Oval5\Oval5.gu-IN.resx,obj\Debug\makeDll.Circle.Oval5.Oval5.gu-IN.resources
Processing resource file "Circle\Oval5\Oval5.resx" into "obj\Debug\makeDll.Circle.Oval5.Oval5.resources".
Processing resource file "Circle\Oval5\Oval5.pa_IN.resx" into "obj\Debug\makeDll.Circle.Oval5.Oval5.pa_IN.resources".
Processing resource file "Circle\Oval5\Oval5.fr-FR.resx" into "obj\Debug\makeDll.Circle.Oval5.Oval5.fr-FR.resources".
Processing resource file "Circle\Oval5\Oval5.gu-IN.resx" into "obj\Debug\makeDll.Circle.Oval5.Oval5.gu-IN.resources".
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Microsoft.CSharp.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.DataSetExtensions.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Xml.Linq.dll" /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\makeDll.dll /resource:obj\Debug\makeDll.Circle.Oval5.Oval5.resources /resource:obj\Debug\makeDll.Circle.Oval5.Oval5.pa_IN.resources /target:library Circle\Oval5\Oval5.Designer.cs Circle\Oval5\Oval5.Designer.pa_IN.cs Circle\Oval5\Oval5.Designer.fr-FR.cs Circle\Oval5\Oval5.Designer.gu-IN.cs Properties\AssemblyInfo.cs "C:\Users\schakravorty\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.cs"
GenerateSatelliteAssemblies:
Creating directory "obj\Debug\fr-FR".
Creating directory "obj\Debug\gu-IN".
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\AL.exe /culture:fr-FR /out:obj\Debug\fr-FR\makeDll.resources.dll /template:obj\Debug\makeDll.dll /embed:obj\Debug\makeDll.Circle.Oval5.Oval5.fr-FR.resources
GenerateSatelliteAssemblies:
c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\AL.exe /culture:gu-IN /out:obj\Debug\gu-IN\makeDll.resources.dll /template:obj\Debug\makeDll.dll /embed:obj\Debug\makeDll.Circle.Oval5.Oval5.gu-IN.resources
CopyFilesToOutputDirectory:
Copying file from "obj\Debug\makeDll.dll" to "bin\Debug\makeDll.dll".
makeDll -> D:\MyProject\bin\Debug\makeDll.dll
Copying file from "obj\Debug\makeDll.pdb" to "bin\Debug\makeDll.pdb".
Creating directory "bin\Debug\fr-FR".
Copying file from "obj\Debug\fr-FR\makeDll.resources.dll" to "bin\Debug\fr-FR\makeDll.resources.dll".
Creating directory "bin\Debug\gu-IN".
Copying file from "obj\Debug\gu-IN\makeDll.resources.dll" to "bin\Debug\gu-IN\makeDll.resources.dll".
Done Building Project "D:\MyProject\makeDll.csproj" (rebuild target(s)).
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.09
You need to change the resource filename from pa_IN to pa.IN
From [MSDN][1]
The culture name in the format languagecode2-country/regioncode2.
languagecode2 is a lowercase two-letter code derived from ISO 639-1.
country/regioncode2 is derived from ISO 3166 and usually consists of
two uppercase letters.
[1] http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.name.aspx

ASP.NET - Dealing with dependencies when using the debugger

When we run ASP.NET through the debugger it runs in a special directory like:
C:\Program Files\Common
Files\Microsoft Shared\DevServer\10.0
I dont know if this directory is configureable. The problem is that if you have a file such as Transfer.xsl then you set its property "Copy to Output Directory" to "Copy if newer". This copies the file out to the bin.
But, we are not running inside the bin. So if I use a relative path
StorageFolder\Transfer.xsl
It becomes...
C:\Program Files\Common
Files\Microsoft Shared\DevServer\10.0\StorageFolder\Transfer.xsl
But, Visual Studio does not copy files here even when you set the property described above.
In the past I got around this problem by writing a pre-build routine to xcopy the dependencies to this "temp folder". It works, but flippen sucks caseadillas.
Is there a better way?
In ASP.NET application you could use the App_Data special folder to store files. And when you want to get the full path to this file you use the MapPath method:
string fullPath = Server.MapPath("~/App_Data/Transfer.xsl");

Resources