Установка Visual Studio и Развертывание создают сбои без ошибок

Попробуйте следующий код -

<?php
    echo ucwords(strtolower('TELEPHONY/MOBILE PHONE/ACCESSORIES'), "/ ");
?>

Вывод:

Телефония / Мобильные телефоны / аксессуары

5
задан Neil Barnwell 11 May 2009 в 12:46
поделиться

3 ответа

The answer in the end was that it is a known bug: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=317870

The answer is to modify project files (*.csproj) containing LINQ to SQL dbml files to remove some stuff, as follows:

  1. Close VS 2008.
  2. Open the project file containing the LINQ To SQL item in Notepad.
  3. Remove the following lines:
    [ItemGroup]
    [Service Include="{3259AA49-8AA1-44D3-9025-A0B520596A8C}"/]
    [/ItemGroup]

The Setup Project will now build successfully. However, if you double-click the DBML file to open the designer in VS 2008 the Setup Project will stop building again. The above lines do not get re-added to the project file but the Setup Project will stop building anyway. Just перезапустите VS 2008, и он снова будет работать - пока вы снова не откроете дизайнер DBML. После сбоя проекта установки из-за этой проблемы это никогда не будет построить успешно до тех пор, пока вы перезапустите VS 2008.

В конце концов я нашел ответ (или, по крайней мере, ссылку на ответ) в теме форума MS Connect . Вот задокументированный обходной путь .

11
ответ дан 13 December 2019 в 19:35
поделиться

(You did not say what Kind of Build Server you have. Because you tagged ".net" I am going to assume you are using TFS and Team Build.)

Team Build uses MSBuild (really it IS MSBuild). MSBuild cannot build vdproj files. Only Visual Studio can do that.

So if you are including solutions that that include vdproj files then they will fail. (Check your build log around the vdproj projects to see if they failed.)

One way to stop these failures from registering is to create a configuration that you compile for your Team Build that does not include your vdproj files (if the failed projects are really bugging you).

The best way to get your msi and exe files are to run Visual Studio on your vdproj projects. Add a custom target after the build has finished and call Visual Studio manually on your project. (I don't know why your msi and exe files are being generated unless you are doing this.)

As an alternative consider Windows Installer XML (WIX). Version 3 (which is very very close to full release and has a stable beta out) uses MSBuild. This means that your solutions can be compiled via Team Build with out any special actions. The only drawback is that WIX cannot target 'Any CPU', but it can be part of a Solution Level target of 'Any CPU' as long as it is targeting a specific platform.

0
ответ дан 13 December 2019 в 19:35
поделиться

yeah, I've had this before.

Not sure about your set up, but try this is appropriate:

Firstly, right-click on your Solution file > Properties > Configuration

In there, use the build tick boxes to experiment with which projects build together, and which don't.

Also, in your file system, delete the debug/release folders for all of your projects.

Finally, in my experience, this error is usually caused by a corrupt/missing web.config.

let me know how you go

0
ответ дан 13 December 2019 в 19:35
поделиться
Другие вопросы по тегам:

Похожие вопросы: