Điều gì xảy ra khi cần đổi tên, cut - paste các file trong folder ?
Nói về visual studio. Một solution có nhiều project.
Một project có nhiều namespase, một namespase có nhiều class, ...
Một dự án chứa trong nhiều thư mục, mỗi thư mục chứa nhiều tập tin.
Một class có thể chứa trong nhiều file (partial) và ngược lại 1 file có thể chứa nhiều class
Điều gì sẽ xảy ra khi thao tác ?
Điều gì xảy ra khi cần đổi tên, cut - paste các file trong folder ?
thư mục gốc của dự án trong abc.csproj là quan trọng
thay đổi có thể làm CT đang ổn định, biên dịch lại: hết chạyXML Code:
<RootNamespace>pathRoot</RootNamespace>
Chúng (file và class, folder và namespace) có mối quan hệ biện trứng, tương hỗ relationShip với nhau
Dùng nhiều, ngỡ là thành thạo
Bị lỗi này trong Vs2010
Code:Error 1 Invalid option '4' for /langversion; must be ISO-1, ISO-2, 3 or Default C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.CSharp.targets 316 9 Skin2
có ai bị như thế không ?
Các file cùa nó không lỗi, tạo project đưa chúng vào thử là tốt.
Nó lỗi do csproj file, nó na ná như vầy:
XML Code:
<?xml version="1.0" encoding="utf-8"?> <!-- WARNING: this file is autogenerated, don't modify it. Edit the .sources file of the corresponding assembly instead if you want to add/remove C# source files. --> <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">net_4_x</Platform> <ProjectGuid>{117140AC-A163-4B86-9E69-A46EA268A9DB}</ProjectGuid> <OutputType>Library</OutputType> <NoWarn>1699,1030,3009</NoWarn> <LangVersion>4</LangVersion> <HostPlatform Condition=" '$(HostPlatform)' == '' and '$(OS)' == 'Windows_NT'">win32</HostPlatform> <HostPlatform Condition=" '$(HostPlatform)' == '' and '$(OS)' == 'Unix' and $([System.IO.File]::Exists('/usr/lib/libc.dylib'))">darwin</HostPlatform> <HostPlatform Condition=" '$(HostPlatform)' == '' and '$(OS)' == 'Unix'">linux</HostPlatform> <GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute> <NoStdLib>True</NoStdLib> <NoConfig>True</NoConfig> <AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AssemblyName>Mono.Security</AssemblyName> <SignAssembly>true</SignAssembly> <AssemblyOriginatorKeyFile>../mono.pub</AssemblyOriginatorKeyFile> </PropertyGroup> ... </Project>
Nên, cần biết sử dụng thành thạo nó (IDE)
Làm chủ được môi trường là nhu cầu tối thiểu