Error message in Visual Studio 2010 with Studio 2014 SDK

Hi, 

I set up a SDL Studio plug-in using the Studio 2014 SDK and Visual Studio 2010. 

Every time I build the project, I get the following error message: 

Error 1 The process cannot access the file 'C:\Users\[USER]\AppData\Roaming\SDL\SDL Trados Studio\11\Plugins\Packages\plugin.sdlplugin' because it is being used by another process. 

VS runs under admin privileges. I guess that there is a custom MSBUILD task that causes this issue but I'm not sure.

Does anyone know how to solve it?  

Thanks, 

Christopher 

Parents Reply Children
  • Hi Sorin,

    no, Trados Studio is not running during the build.

    I found the root cause of this issue:

    By default, the output path for a Studio plugin assembly is set to

    C:\Users\USER\AppData\Roaming\SDL\SDL Trados Studio\11\Plugins\Packages

    There is a MSBUILD task CreatePluginManifestTask that is executed after the build. This task copies the generated .sdlplugin file to AppData\Roaming\SDL\SDL Trados Studio\11\Plugins\Packages.

    I think that the MSBUILD task tries to copy the file when it gets copied by Visual Studio. Therefore, the error message is shown.

    There are two ways to work around this problem:

    1) Change the output path of the project to another folder (i.e. bin\Debug).

    2) Edit the .csproj and add

    <PropertyGroup>

    <DeployPluginPackage>false</DeployPluginPackage>

    </PropertyGroup>

    This will prevent the MSBUILD task from moving the .sdlplugin file.

    Thanks,

    Christopher