sayedihashimi / slow-cheetah

XML Transforms for app.config and other XML files
Other
242 stars 51 forks source link

Package Not loading VS2012 #228

Open ComplX1 opened 7 years ago

ComplX1 commented 7 years ago

Just tried adding this plugin to our solution which is currently built in vs2012. When i load Visual studio it says SlowCheetahPackage package did not load correctly. Vs Activity log says this:

1261 Information VisualStudio Begin package load [SlowCheetahPackage] {9EB9F150-FCC9-4DB8-9E97-6AEF2011017C} 1262 Error VisualStudio SetSite failed for package [SlowCheetahPackage] {9EB9F150-FCC9-4DB8-9E97-6AEF2011017C}
80131513 Method not found: '!!0[] System.Array.Empty()'.
1263 Error VisualStudio End package load [SlowCheetahPackage] {9EB9F150-FCC9-4DB8-9E97-6AEF2011017C}
80131513 Method not found: '!!0[] System.Array.Empty()'.

Any advice on how to tackle this issue?

danmayor commented 7 years ago

I uninstalled the product and switched to use match (xdt:Locator=”Match(name)”) conditions with Config Source (configSource=”myOther.config”). It appears Visual Studio 2015 (if not earlier) has functionality to accomplish what the Slow Cheetah add in used to provide for us. Sorry this answer doesn't support the product :(

ninerats commented 7 years ago

I also have same issue on Visual Studio 2013 Premium.

ComplX1 commented 7 years ago

@ninerats I know its not very kosher to provide an alternative in the github comments, but I managed to get other config files running through the .Net transformations by just editting the .proj file. I found this stack overflow: http://stackoverflow.com/questions/5557866/how-to-transform-log4net-config-like-web-config

It says you can get Visual studio to perform a transformation like so

<ItemGroup>
  <WebConfigsToTransform Include="log4net.config">
    <DestinationRelativePath>log4net.config</DestinationRelativePath>
    <Exclude>False</Exclude>
    <TransformFileFolder>$(TransformWebConfigIntermediateLocation)\original</TransformFileFolder>
    <TransformFile>log4net.$(Configuration).config</TransformFile>
    <TransformOriginalFolder>$(TransformWebConfigIntermediateLocation)\original</TransformOriginalFolder>
    <TransformOriginalFile>$(TransformWebConfigIntermediateLocation)\original\%(DestinationRelativePath)</TransformOriginalFile>
    <TransformOutputFile>$(TransformWebConfigIntermediateLocation)\transformed\%(DestinationRelativePath)</TransformOutputFile>
    <TransformScope>$(_PackageTempDir)\%(DestinationRelativePath)</TransformScope>
    <SubType>Designer</SubType>
  </WebConfigsToTransform>
  <None Include="log4net.Debug.config">
    <DependentUpon>log4net.config</DependentUpon>
  </None>
  <None Include="log4net.Release.config">
    <DependentUpon>log4net.config</DependentUpon>
  </None>
</ItemGroup>

Now when our build server runs it though the deploy process, the deploy output log contains these two entrys 2>Transformed log4net.config using log4net.Staging.config into obj\Staging\TransformWebConfig\transformed\log4net.config. 2>Transformed Web.config using ...\Web.Staging.config into obj\Staging\TransformWebConfig\transformed\Web.config.

davilimap commented 7 years ago

@ComplX1 @ninerats What version of .NET framework do you have installed on your machines?

MeaningOfLights commented 7 years ago

I've got this error in VS2017, I cannot see the Add-In in my list of Extensions. How do you uninstall it?