1 Hướng dẩn mở file của visual studio 2008 bằng 2005 hay ngược lại. 2010-11-04, 23:27
viet_hung2512
Thành Viên
Bạn đang cài visual studio 2005 nhưng có một số đoạn code mẫu download từ các diễn đàn lại viết bằng visual 2008. Bạn sẽ làm gì trong tình huống này? Hãy làm theo cách của tui nhất bạn sẽ mở đc 1 project của vs2008 trên vs2005
1 Project/1Site muốn chuyển từ vs2008 ->xuống cho vs2005 chạy đc tì chỉ cần sửa 2 file
---Thứ 1 :
Open File Solutions (*.sln) bằng Notepad OR WordPad (ai thích cái nào mở cái đó! Tại 2 dòng đầu :
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Sửa lại là :
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
[You must be registered and logged in to see this image.]
---Thứ 2 :
Open File *.csproj hoặc file.vbproj(nếu có) (file project) bằng Notepad OR WordPad .
Tại dòng thứ 9 từ dưới lên :
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets"/>
Sửa lại là:
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets"/>
[You must be registered and logged in to see this image.]
Cuối cùng tìm trong code tất cả những dòng System.Linq thì xóa hết chúng đi vì vs2005 ko hỗ trợ Linq (nếu tìm không có thì thôi. không phải code nào cũng có nha.)
và cuối cùng là có thể quăng boom lên moodle rồi
Sưu tầm internet
1 Project/1Site muốn chuyển từ vs2008 ->xuống cho vs2005 chạy đc tì chỉ cần sửa 2 file
---Thứ 1 :
Open File Solutions (*.sln) bằng Notepad OR WordPad (ai thích cái nào mở cái đó! Tại 2 dòng đầu :
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Sửa lại là :
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
---Thứ 2 :
Open File *.csproj hoặc file.vbproj(nếu có) (file project) bằng Notepad OR WordPad .
Tại dòng thứ 9 từ dưới lên :
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets"/>
Sửa lại là:
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets"/>
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
Cuối cùng tìm trong code tất cả những dòng System.Linq thì xóa hết chúng đi vì vs2005 ko hỗ trợ Linq (nếu tìm không có thì thôi. không phải code nào cũng có nha.)
và cuối cùng là có thể quăng boom lên moodle rồi
Sưu tầm internet