Hi,
Can anyone tell me how to resolve the below issue.
- I have a Windows application added to the Team Project.
- Application is using some DLL's and other misc things like Infragistics Control,XHEO Linecing,SharePoint Dll
- When i try to build in TFS, m getting more then 100 errors and some warnings.
- I have the error,warning like bellow as the whole log is a big one so i m pasting some of them
Primary reference "Microsoft.SharePoint.Portal".
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.Common.targets : warning MSB3245: Could not resolve this reference. Could not locate the assembly "Microsoft.SharePoint.Portal". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
For SearchPath "<Build Directory on selected machine>\SPM4\Binaries\Release\".
Considered "<Build Directory on selected machine>\Binaries\Release\Microsoft.SharePoint.Portal.exe", but it didn't exist.
Considered ""<Build Directory on selected machine>\Binaries\Release\Microsoft.SharePoint.Portal.dll", but it didn't exist.
For SearchPath "{HintPathFromItem}".
Considered "..\..\..\Program Files\Common Files\Microsoft Shared\web server extensions\60\ISAPI\Microsoft.SharePoint.Portal.dll", but it didn't exist.
For SearchPath "{TargetFrameworkDirectory}".
Considered "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.SharePoint.Portal.exe", but it didn't exist.
Considered "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Microsoft.SharePoint.Portal.dll", but it didn't exist.
For SearchPath "{GAC}".
Considered "Microsoft.SharePoint.Portal", which was not found in the GAC.
For SearchPath "{RawFileName}".
Considered treating "Microsoft.SharePoint.Portal" as a file name, but it didn't exist.
For SearchPath "bin\".
Considered "bin\Microsoft.SharePoint.Portal.exe", but it didn't exist.
Considered "bin\Microsoft.SharePoint.Portal.dll", but it didn't exist
Error
<Build Directory on selected machine>\frmMain.vb(983): error BC30002: Type '<Class Name(class used in one of my DLL>' is not defined.
Shall i need register those DLL on the Team Foundation Server
Thanks in advance.

Team Build Error
Jason Nowicki
Hery Susanto WR
Yes the project is building perfectly from VS IDE and also from MSBuild command line.
Ok now i build one of my DLL used in my above application from TFS and got this error "Build FAILED.
vbc : error BC30140: Error creating assembly manifest: Error reading key file '..\..\<app name>.snk' -- The system cannot find the file specified."
Any idea about this
Thanks.
mikecmr
Firstly, is this project building from the VS IDE If yes, can you please try building the solution from the MSBuild command line
Munjal Patel
For references to the another dll, ensure that the paths are not hard-coded. Any hard-coded path may work well on one machine but break on another.
The best is to use project to project reference whereever possible (http://msdn2.microsoft.com/en-us/library/7314433t.aspx). At other places, you may use relative path and ensure that the directory structure is preserved.
Thanks,
Gautam