當複製專案無法加入Team Foundation時, 簡單小步驟可以解決
筆者預到的狀況是:
以檔案總管將另一個Foundation Server下專案複製,儲存至要開發的 Solution 目錄下
開啟Visual Studio 2010後,將搬進來的專案加入後,卻沒辦法簽入Foundation Server
如下圖專案Icon沒有
解決辦法:
Step1:
該專案先從Solution中移除
Step2:
在專案目錄下刪除 *.vspscc 檔案
Step3:
以記事本開啟 *.csproj 或者 *.vbproj 檔案,找到以下4行(紅字部份)並刪除後儲存檔案。
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{C588A8E8-CA14-496A-AD78-EF6B27A23ABC}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>PlayerUnitTest</RootNamespace>
<AssemblyName>PlayerUnitTest</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
Step4:
從Solution重新加入該專案,就可以[簽入]