Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package Not loading VS2012 #228

Open
ComplX1 opened this issue Feb 27, 2017 · 5 comments
Open

Package Not loading VS2012 #228

ComplX1 opened this issue Feb 27, 2017 · 5 comments

Comments

@ComplX1
Copy link

ComplX1 commented Feb 27, 2017

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
2017/02/27 15:17:56.335
Information
VisualStudio
Begin package load [SlowCheetahPackage]
{9EB9F150-FCC9-4DB8-9E97-6AEF2011017C}


1262
2017/02/27 15:17:56.335
Error
VisualStudio
SetSite failed for package [SlowCheetahPackage]
{9EB9F150-FCC9-4DB8-9E97-6AEF2011017C}


80131513
Method not found: '!!0[] System.Array.Empty()'.


1263
2017/02/27 15:17:56.335
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
Copy link

danmayor commented Feb 27, 2017 via email

@ninerats
Copy link

ninerats commented Mar 9, 2017

I also have same issue on Visual Studio 2013 Premium.

@ComplX1
Copy link
Author

ComplX1 commented Mar 10, 2017

@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
Copy link
Collaborator

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

@MeaningOfLights
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants