Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

Can't resolve references

$
0
0

I am having all sorts of issues with trying to build and deploy SharePoint 2010  projects.

We have a build server and a PowerShell script building and installing the same code base onto our Dev servers.(where it is working)

Other developers on my team are not reporting any issues.

We are using VS 2012 and SharePoint 2010.

I cant build my solution, I get errors like:

Error 83 The type or namespace name 'Bxxxxxxxxxxxs' could not be found (are you missing a using directive or an assembly reference?) C:\Dev\GRSUS\OE Phase II\Dev\Noel\src\OE\OE.Utilities\clsSiteCreation.cs 5 7 OE.Utilities.

and

Error 246 Metadata file 'C:\Dev\GRSUS\OE Phase II\Dev\Noel\src\OE\Bxxxxxxxxxxxs.OE.Web.Mvp.AdminWebParts\bin\Debug\Bxxxxxxxxxxxs.OE.Web.Mvp.AdminWebParts.dll' could not be found C:\Dev\GRSUS\OE Phase II\Dev\Noel\src\OE\OE.AdminWebPartsTest\CSC OE.AdminWebPartsTest

Sometimes I can get it to build if I go to the GAC and uninstall all of our custom dlls, but sometimes this does not work.

Even if it does build, some of my projects will deploy but some of them won't. The projects that will not deploy show the same types of errors as above. Like it cant find the correct dll to reference.

if I look at the output I see weird warnings like:


12>C:\windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3275: The primary reference "C:\Dev\GRSUS\OE Phase II\Dev\Noel\src\OE\Bxxxxxxxxxxxs.OE.Services\bin\Debug\Bxxxxxxxxxxxxs.OE.Services.dll" could not be resolved because it has an indirect dependency on the assembly "Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed" which was built against the ".NETFramework,Version=v4.0,Profile=Client" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v3.5".

This is troubling because SharePoint is 3.5 .Net and all of our projects are targeted at 3.5, but for some reason it thinks that some of our projects are built against the 4.0 or 4.5 framework.

The targets file above also looks suspect because it is in the 4.0 framework folder location(this might be OK because maybe it is backwards compatible)

2>C:\Dev\GRSUS\OE Phase II\Dev\Noel\src\OE\OE.Utilities\clsSiteCreation.cs(5,7,5,20): error CS0246: The type or namespace name 'BXXXXXXxxxxxxs' could not be found (are you missing a using directive or an assembly reference?)

 Help!! I have tried recycling app pools and cleaning my C Drive of all code and output, and getting code from source control, but I am stuck.

Thanks Noel


Thanks Noel


Viewing all articles
Browse latest Browse all 11508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>