Yep có câu hỏi tương tự trên mạng, nhưng họ không liên quan đến VS 2017:MSBuild Công cụ 2017 với Azure SDK 2.9.6
Tôi đã gần đây nâng cấp từ VS 2015 lên VS 2017. Trên máy tính dev cục bộ của tôi mọi thứ hoạt động tốt và ứng dụng Azure (với Azure SDK 2.9.6) xây dựng và bắt đầu.
Nhưng trên máy chủ TeamCity (MS Build Công cụ 2017 - Công cụ phiên bản 15.0) tôi nhận được lỗi sau:
MSB4019: The imported project "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\VisualStudio\v15.0\Windows Azure Tools\2.9\Microsoft.WindowsAzure.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.
Việc xây dựng máy chủ/MSBuild cố gắng tìm ra Microsoft.WindowsAzure.targets
trong thư mục:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\Microsoft\VisualStudio\v15.0\Windows Azure Tools\2.9\
Nhưng nó thực sự là trong thư mục:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\[VisualStudioVersion]\MSBuild\Microsoft\VisualStudio\v15.0\Windows Azure Tools\2.9\
[VisualStudioVersion]
có thể có các giá trị sau "Cộng đồng", "chuyên nghiệp", "Doanh nghiệp"
Vâng, tôi đã xây dựng các công cụ cài đặt (https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15).
Vâng, tôi đã sao chép toàn bộ thư mục Windows Azure Tools
-BuildTools\MSBuild\Microsoft\VisualStudio\v15.0
, nhưng sau đó tôi nhận được lỗi khác trong # dự án F của tôi:
MSB4057: The target "GetTargetFrameworkProperties" does not exist in the project.
Nó có vẻ như MS mới Xây dựng Công cụ 2017 không hoạt động đúng với Windows Azure. Có cách giải quyết nào chưa? Hoặc là tùy chọn duy nhất để chuyển về MSBuild cũ hơn?