Solution-
Here is my problem.When i was using Team Foundation Server(Source Controller) with my window phone's project(XNA),It's don't happen.
After i install a plugin "Productivity Power Tools" the problem is appear.I google it and found there is a solution and it's solve my problem:
Turn Off the "Automatic Brace Completion" at Tools->Options->Productivity Power Tools
Maybe turn off some plugin you could found the problem.
Wednesday, February 29, 2012
Tuesday, February 28, 2012
C#-Note: Internal
成員所屬型別 | 成員預設存取範圍 | 成員允許的宣告存取範圍 |
---|---|---|
enum | public | 無 |
class | private | public protected internal private protected internal |
interface | public | 無 |
struct | private | public internal private |
MSDN範例:
internal class BaseClass
{
public static int intM = 0;
}
class TestAccess
{
static void Main()
{
BaseClass myBase = new BaseClass(); // CS0122
}
}
如果在第二個檔案中嘗試產生BaseClass,將會產生錯誤。
將BaseClass 存取級別變為Public
將成員intM 存取級別變為Internal
public class BaseClass
{
internal static int intM = 0;
}
public class TestAccess
{
static void Main()
{
BaseClass myBase = new BaseClass(); // Ok.
BaseClass.intM = 444; // CS0117 Error
}
}
如此一來您可以將類別具現化,但無法存取內部成員。
Sunday, February 12, 2012
Team Foundation Server - Installation Note
1. Installation OS
Window 7
Window Server 2008 (recommend)
2.IIS service
控制台->程式和功能->開啟或關閉Windows功能
Check Internet Information Services
Internet Information Services Web核心
3.Installation Window SQL Server 2008 R2
Add administrator and password
4.Installation Team Foundation Server 2010
5.Installation Visual studio 2010
Done
-----------------------------------------------------------------------------
Team Foundation Server Basic
Check-in:Upload your code to Server
Shelve And UnShelve:程式碼完成一半,暫時擱置,同時其他人也可以取得Shelve的程式碼並修改。
Branch(分支):將已完成的版本,建立新的分支,同時開發舊的版本與新的版本。
PS.After Branch you need Check-in again
Merge(合併):將舊版與新版合併
衝突發生:
也可先使用Shelve
Lable:標記程式碼版本
-----------------------------------------------------------------------------
Team Foundation Server Basic
Check-in:Upload your code to Server
Shelve And UnShelve:程式碼完成一半,暫時擱置,同時其他人也可以取得Shelve的程式碼並修改。
Branch(分支):將已完成的版本,建立新的分支,同時開發舊的版本與新的版本。
PS.After Branch you need Check-in again
衝突發生:
也可先使用Shelve
Lable:標記程式碼版本
-----------------------------------------------------------------------------
Visual Studio 2010 hotkey Note
alt + shift :多行同時輸入
alt + mouse Left Drag:一次編輯多行
-----------------------------------------------------------------------------
Reference:
Subscribe to:
Posts (Atom)