Home Bug Reports

Visual Studio 2008 csproj changes

tcaztcaz Member Thomas CazabatOrganization: HagerProject: domovea home automation project
Hello,

Since few weeks we have an issue with the ice plugin in visual studio 2008.
Every time we open a solution with an Ice project this one is automatically checked-out from source control (TFS) and modified in order to change the reference to the ice library.

Ice plugin version: 3.4.2
Visual Studio version: Visual Studio Team System 2008, 9.0.30729.1 SP

Ice plugin configuration:
Attachment not found.

Original version of the csproj:
    <Reference Include="Ice, Version=3.4.2.0, Culture=neutral, PublicKeyToken=cdd571ade22f2f16, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\..\..\..\SharedBinaries\Ice.dll</HintPath>
    </Reference>

Modified version of the csproj:
<Reference Include="Ice, Version=3.4.2.0, Culture=neutral, PublicKeyToken=cdd571ade22f2f16, processorArchitecture=MSIL">
      <Private>False</Private>
</Reference>

Do you have a way to prevent this modification?

Best Regards
Ice.PNG 40.4K

Comments

  • mcreteaumcreteau Member mathieu creteauOrganization: hagerProject: hager
    Hi

    After investigating in the addin source code, it seems that this behavior comes from "VerifyProjectSettings" method in the Util.cs class.
    The coded behavior is to update the ICE project reference if the reference path is not equal to Ice Home.
    In our development, we cannot use the ICE Home folder because we use a shared binaries folder for all third party dlls.
    Perhaps this method could check the "PropertyIcePrefix" property value to check if the reference modification must be done on the project. It seems that it was this behavior implemented in the previous version of the addin (when the ICE checkbox was unchecked in project properties, the project was not modified on solution load).

    Regards,
    Mathieu
  • xdmxdm La Coruña, SpainAdministrators, ZeroC Staff Jose Gutierrez de la ConchaOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi Mathieu,

    After review your problem we have created a patch for VS add-in that solve this problem. You can find the patch here.

    This patch also solves the other issue you posted here.

    Please try it and let me know if it works for you.
  • mcreteaumcreteau Member mathieu creteauOrganization: hagerProject: hager
    Hi,

    Thanks for the patch, I'll test it right away and let you know about the results.

    Best regards
    Mathieu
Sign In or Register to comment.