Welcome to the navigation

Eu enim laborum, est tempor lorem sed quis excepteur culpa esse non ex voluptate aliquip fugiat ut cupidatat magna aute minim ea amet, anim et. Proident, sunt in dolore adipisicing reprehenderit elit, amet, ullamco in cillum consectetur commodo laborum, duis consequat, aute nulla magna ut veniam, deserunt excepteur in dolor

Yeah, this will be replaced... But please enjoy the search!

Resolving VSTS Error CS0234 CS0246

If you are having errors like CS0234 CS0246 in a Visual Studio Online build process while the build works just fine locally you may have badly configured NuGet feed settings.

In my case, I had to update the settings in my Nuget.config file 

Originally the file looked like this

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <config>
    <clear />
    <add key="repositoryPath" value="packages" />
  </config>
  <packageSources>
    <clear />
    <!-- old config -->
    <add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
    <add key="nuget.org" value="https://www.nuget.org/api/v2/" />
    <add key="EPiServer" value="http://nuget.episerver.com/feed/packages.svc/" />
  </packageSources>
  <activePackageSource>
    <add key="All" value="(Aggregate source)" />
  </activePackageSource>
  <disabledPackageSources>
    <add key="nuget.org" value="true" />
  </disabledPackageSources>
</configuration>

The solution was to remove the old V2 API and modernize the file a bit to this

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <solution>
    <add key="disableSourceControlIntegration" value="true" />
  </solution>
  <packageSources>
    <add key="NuGet" value="https://api.nuget.org/v3/index.json" />
    <add key="Episerver" value="https://nuget.episerver.com/feed/packages.svc" />
  </packageSources>
</configuration>

Cheers.