In our automatic build process we use visual studio command line (by some reasons we can't use msbuild):
devenv.exe /build ....
it was works correctly for years, but recently we moved to other build machine. Sometime (rare) build failed with stgange error. More precisely - here is no error for some projects. Projects started and nothing more:
....
62>C:\Windows\Microsoft.NET\FramModuleork\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "D:\Autobuild\10.0\dotNET_tc\My.Legacy\bin\x64\Release\My.Legacy.dll", "AMD64". This mismatch may cause runtMye failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
62> My.Srv.User -> D:\GFIN_Autobuild\gfin_10.0\dotNET_tc\My.Srv.User\bin\My.Srv.User.dll
63>------ Build started: Project: My.Srv.Admin, Configuration: Release Any CPU ------
64>------ Build started: Project: My.ExportProcessor, Configuration: Release Any CPU ------
65>------ Build started: Project: My.Srv.MSSQLConnector, Configuration: Release Any CPU ------
66>------ Build started: Project: My.Server.Ita, Configuration: Release Any CPU ------
67>------ Build started: Project: My.Server.Rca, Configuration: Release Any CPU ------
68>------ Build started: Project: My.Server.Module, Configuration: Release Any CPU ------
69>------ Build started: Project: My.Server.DB2, Configuration: Release x64 ------
70>------ Build started: Project: My.Server.Server, Configuration: Release Any CPU ------
71>------ Build started: Project: My.Server.Module.Specific, Configuration: Release Any CPU ------
72>------ Build started: Project: My.Patterns.Data, Configuration: Release x64 ------
73>------ Build started: Project: My.Server.DatabaseWeb, Configuration: Release Any CPU ------
74>------ Build started: Project: My.Srv.Client, Configuration: Release Any CPU ------
========== Build: 59 succeeded, 15 failed, 1 up-to-date, 0 skipped ==========
We change host for out virtual build machine, we reinstall OS on build machine but error still appeared sometime.
Any thoughts?
P.S. we start builds from Jenkins and TeamCity. In both error was reproduced.
Related
I'm developping a console c# app .NET core 3.0 . I've created a Setup Wizard who contains only principal output.
The problem is when i'm installing my program, the setup install only 2 files.
-ProjectName.dll
-ProjectName.runtimeconfig.json
I can't find the .exe after installation
I need install .NET framework during installation of my program so I configure the installation URL (path on my network) to the .exe of installation but that's not work.
I've go a Build Output without errors nor warnings :
- ------ Starting pre-build validation for project 'ProjectName' ------
- ------ Starting pre-build validation for project 'ProjectName' ------
- ------ Pre-build validation for project 'ProjectName' completed ------
- ------ Pre-build validation for project 'ProjectName' completed ------
- 1>------ Début de la génération : Projet : ProjectName, Configuration : Release ------
- 1>------ Début de la génération : Projet : ProjectName, Configuration : Release ------
- Building file 'C:\Users\blabla\source\repos\Setup_ProjectName\Release\Setup_ProjectName.msi'...
- Building file 'C:\Users\blabla\source\repos\Setup_ProjectName\Release\Setup_ProjectName.msi'...
- Packaging file 'ProjectName.dll'...
- Packaging file 'ProjectName.dll'...
- Packaging file 'ProjectName.runtimeconfig.json'...
- Packaging file 'ProjectName.runtimeconfig.json'...
- ========== Génération : 1 a réussi, 0 a échoué, 1 mis à jour, 0 a été ignoré ==========
Thx for help.
I have a solution where my main project is a uwp app, and two other projects referenced by the app :
UWP App ---> references 2.
Universal Class library ----> references 3.
PCL Library
2 --> uses EF7 and SQLight.
3 --> uses PCLCrypto
Now, everything works just fine and excellent when I'm on Debug mode x86 targeting local machine.
I want to compile the solution in release mode using .Net native tool chain, here's my config :
When I launch the compilation, it takes a remarkably long time, and too much memory is consumed by the .Net native tools :
After some time, everything stops with 2 errors on visual studio :
Here's what the output window says :
1>------ Build started: Project: ServerCommunication, Configuration:
Release Any CPU ------ 1> ServerCommunication ->
C:\Users\aymen\Documents\Visual Studio
2015\Projects\Applinova\Liberte\ServerCommunication\bin\Release\ServerCommunication.dll
2>------ Build started: Project: NewspaperDataLayer, Configuration:
Release x86 ------ 2>C:\Users\aymen\Documents\Visual Studio
2015\Projects\Applinova\Liberte\packages\Microsoft.Bcl.Build.1.0.14\tools\Microsoft.Bcl.Build.targets(225,5):
warning : All projects referencing ServerCommunication.csproj must
install nuget package Microsoft.Bcl.Build. For more information, see
http://go.microsoft.com/fwlink/?LinkID=317569. 2> NewspaperDataLayer
-> C:\Users\aymen\Documents\Visual Studio 2015\Projects\Applinova\Liberte\NewspaperDataLayer\bin\x86\Release\NewspaperDataLayer.dll
3>------ Build started: Project: Liberte, Configuration: Release x86
--some warnings here that I just skipped
3> Starting .NET Native compilation 3> Processing application code
3>C:\Users\aymen\Documents\Visual Studio
2015\Projects\Applinova\Liberte\Liberte\Resources.System.Linq.Expressions.rd.xml(35):
warning : Method 'CreateLambda' within
'System.Linq.Expressions.Expression' could not be found.
3>C:\Users\aymen\Documents\Visual Studio
2015\Projects\Applinova\Liberte\Liberte\Resources.System.Linq.Expressions.rd.xml(91):
warning : Method 'ParameterIsAssignable' within
'System.Linq.Expressions.Expression' could not be found. 3> Computing
application closure and generating interop code 3> Generating
serialization code 3> Compiling interop code 3> Cleaning up
unreferenced code 3> Generating native code 3>STARTPROCESSTASK :
error : Out of Memory 3>C:\Program Files
(x86)\MSBuild\Microsoft.NetNative\x86\ilc\IlcInternals.targets(1129,5):
error : ILT0005: 'C:\Program Files
(x86)\MSBuild\Microsoft.NetNative\x86\ilc\Tools\nutc_driver.exe
#"C:\Users\aymen\Documents\Visual Studio
2015\Projects\Applinova\Liberte\Liberte\obj\x86\Release\ilc\intermediate\MDIL\Liberte.rsp"'
returned exit code 1
========== Build: 2 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
What would possibly be wrong with this please ??
I had the same problem (I am also using EF7 and other libraries) but I solved using Visual Studio 15 preview (it is not visual studio 2015 update 2, which I didn't try). They improved the .NET native tools so now you should not have any problem, even if using a lot of third party library.
UPDATE
I have solved all my issues after i have installed visual studio 2015 update 3 and switched from EF7 to EF core also available via nuget
I have been struggled past few days around trying to fix this problem, but currently there is no easy solution for it.
There is a closed Issue on EF7 github, more info here (https://github.com/aspnet/EntityFramework/issues/4387) where they suggest as solution update EF7 to v1.0.0-rc2-16898.
I didn't manage how to update and as it still a nightly version, my final solution ("fast" workaround) was change my entire DB to sqlite-pcl (https://visualstudiogallery.msdn.microsoft.com/4913e7d5-96c9-4dde-a1a1-69820d615936).
If you aren't in a rush to lunch your application, you can always wait until final version of RC2 it should be done during April.
I'm getting this error when building my project, and I can't fix it.
I have two solutions with the same setup projects referenced in both, and probably thus, the problem.
I googled, I look it up here in StackOverflow, and did all what people said that should be done: removing and readding references, and a long etcetera.
I will paste here my output hoping that someone can throw a little ray of hope on me, please..
thanks a lot everybody in advance.
Best,
Manuel.
------ Build started: Project: CPTUtils, Configuration: Debug Any CPU ------
CPTUtils -> D:\Projects\DuboCalc\DataLayer\CPTUtils\bin\Debug\CPTUtils.dll
------ Build started: Project: CPT.Security, Configuration: Debug Any CPU ------
CPT.Security -> D:\Projects\DuboCalc\DataLayer\Tools\CPT.Security\bin\Debug\CPT.Security.dll
------ Build started: Project: CPTTranslations, Configuration: Debug Any CPU ------
CPTTranslations -> D:\Projects\DuboCalc\DataLayer\CPTTranslations\bin\Debug\CPTTranslations.dll
------ Build started: Project: CPTDB, Configuration: Debug Any CPU ------
CPTDB -> D:\Projects\DuboCalc\DataLayer\CPTDB\bin\Debug\CPTDB.dll
------ Build started: Project: DBManagement, Configuration: Debug Any CPU ------
DBManagement -> D:\Projects\DuboCalc\DataLayer\DBManagement\bin\Debug\DBManagement.dll
------ Build started: Project: DBMGTBaseExtensions, Configuration: Debug Any CPU ------
DBMGTBaseExtensions -> D:\Projects\DuboCalc\DataLayer\DBMGTBaseExtensions\bin\Debug\DBMGTBaseExtensions.dll
------ Build started: Project: Exporter, Configuration: Debug Any CPU ------
Exporter -> D:\Projects\DuboCalc\DataLayer\Exporter\bin\Debug\Exporter.dll
copy "D:\Projects\DuboCalc\DataLayer\Exporter\bin\Debug\Exporter.dll" "D:\Projects\DuboCalc\DuboCalc2.0\bin\Debug\"
copy "D:\Projects\DuboCalc\DataLayer\Exporter\bin\Debug\Exporter.pdb" "D:\Projects\DuboCalc\DuboCalc2.0\bin\Debug\"
1 file(s) copied.
1 file(s) copied.
------ Build started: Project: DBMgtRevisioning, Configuration: Debug Any CPU ------
DBMgtRevisioning -> D:\Projects\DuboCalc\DataLayer\DBMgtRevisioning\bin\Debug\DBMgtRevisioning.dll
------ Build started: Project: NetworkTools, Configuration: Debug Any CPU ------
NetworkTools -> D:\Projects\DuboCalc\DataLayer\Tools\NetworkTools\bin\Debug\NetworkTools.dll
------ Build started: Project: DBInstaller, Configuration: Debug Any CPU ------
DBInstaller -> D:\Projects\DuboCalc\DuboCalc2.0\DBInstaller\bin\Debug\DBInstaller.exe
------ Build started: Project: DCClasses, Configuration: Debug Any CPU ------
DCClasses -> D:\Projects\DuboCalc\DCClasses\DCClasses\bin\Debug\DCClasses.dll
------ Build started: Project: XMLReporter, Configuration: Debug Any CPU ------
Consider app.config remapping of assembly "EnvDTE, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" from Version "7.0.3300.0" [] to Version "8.0.0.0" [C:\Program Files (x86)\Common Files\Microsoft Shared\MSEnv\PublicAssemblies\EnvDTE.dll] to solve conflict and get rid of warning.
C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3247: Found conflicts between different versions of the same dependent assembly.
XMLReporter -> D:\Projects\DuboCalc\DuboCalc2.0\XMLReporter\bin\Debug\XMLReporter.exe
Done building project "XMLReporter.csproj".
------ Build started: Project: DuboCalc2.0, Configuration: Debug Any CPU ------
C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning : The referenced project '..\..\DCClasses\DCClasses\DCClasses\DCClasses.csproj' does not exist.
Consider app.config remapping of assembly "CPT.Security, Culture=neutral, PublicKeyToken=d593bbb549999bfb" from Version "1.0.4314.17230" [D:\Projects\DataLayer\CPTDB\bin\Debug\CPT.Security.dll] to Version "1.0.4402.23887" [D:\Projects\DuboCalc\DataLayer\Tools\CPT.Security\bin\Debug\CPT.Security.dll] to solve conflict and get rid of warning.
C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3247: Found conflicts between different versions of the same dependent assembly.
C:\Windows\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /main:DuboCalc2._0.Program /reference:D:\Projects\DuboCalc\DataLayer\Tools\CPT.Security\bin\Debug\CPT.Security.dll /reference:D:\Projects\DataLayer\CPTDB\bin\Debug\CPTDB.dll /reference:D:\Projects\DuboCalc\DataLayer\CPTTranslations\bin\Debug\CPTTranslations.dll /reference:D:\Projects\DuboCalc\DataLayer\CPTUtils\bin\Debug\CPTUtils.dll /reference:D:\Projects\DuboCalc\DuboCalc2.0\DBInstaller\bin\Debug\DBInstaller.exe /reference:D:\Projects\DataLayer\DBManagement\bin\Debug\DBManagement.dll /reference:D:\Projects\DuboCalc\DataLayer\DBMGTBaseExtensions\bin\Debug\DBMGTBaseExtensions.dll /reference:D:\Projects\DuboCalc\DataLayer\DBMgtRevisioning\bin\Debug\DBMgtRevisioning.dll /reference:D:\Projects\DuboCalc\DCClasses\DCClasses\bin\Debug\DCClasses.dll /reference:D:\Projects\DuboCalc\DataLayer\Exporter\bin\Debug\Exporter.dll /reference:..\dll\Infragistics2.Excel.v9.2.dll /reference:..\dll\Infragistics2.Shared.v9.2.dll /reference:..\dll\Infragistics2.Win.UltraWinChart.v9.2.dll /reference:..\dll\Infragistics2.Win.UltraWinDataSource.v9.2.dll /reference:..\dll\Infragistics2.Win.UltraWinGrid.ExcelExport.v9.2.dll /reference:..\dll\Infragistics2.Win.UltraWinGrid.v9.2.dll /reference:..\dll\Infragistics2.Win.UltraWinTabControl.v9.2.dll /reference:..\dll\Infragistics2.Win.UltraWinTree.v9.2.dll /reference:..\dll\Infragistics2.Win.v9.2.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\Microsoft.VisualBasic.dll /reference:D:\Projects\DuboCalc\DataLayer\Tools\NetworkTools\bin\Debug\NetworkTools.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.configuration.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll" /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Deployment.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Design.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Runtime.Serialization.Formatters.Soap.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll /reference:C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /reference:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll" /reference:D:\Projects\DuboCalc\DuboCalc2.0\XMLReporter\bin\Debug\XMLReporter.exe /debug+ /debug:full /filealign:512 /nowin32manifest /optimize- /out:obj\Debug\DuboCalc2.0.exe /resource:obj\Debug\DuboCalc2._0.Forms.AxisAnalysisForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.EnvironmentRatiosForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.frmAbout.resources /resource:obj\Debug\DuboCalc2._0.Forms.frmData.resources /resource:obj\Debug\DuboCalc2._0.Forms.frmSplash.resources /resource:obj\Debug\DuboCalc2._0.Graph.resources /resource:obj\Debug\DuboCalc2._0.Forms.LibrarySelectionForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.LibrarySelectionForProject.resources /resource:obj\Debug\DuboCalc2._0.Forms.LibrarySelectionForUpgrade.resources /resource:obj\Debug\DuboCalc2._0.Forms.MassBalanceForm.resources /resource:obj\Debug\DuboCalc2._0.ProjectForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.ProjectPropertiesForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.ReportSelectionForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.SearchResultsForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.TotalOverviewForm.resources /resource:obj\Debug\DuboCalc2._0.Forms.UpdatePreviewForm.resources /resource:obj\Debug\DuboCalc2._0.SearchForm.resources /resource:obj\Debug\DuboCalc2._0.frm_AddMaterialProcess.resources /resource:obj\Debug\DuboCalc2._0.OptionsForm.resources /resource:obj\Debug\DuboCalc2._0.SimpleSearchForm.resources /resource:obj\Debug\DuboCalc2._0.TypeEditor.ExtraPropertiedForm.resources /resource:obj\Debug\DuboCalc2._0.UILongString.resources /resource:obj\Debug\DuboCalc2._0.Forms.VariantAnalysisForm.resources /resource:obj\Debug\DuboCalc2._0.DuboCalcMain.resources /resource:obj\Debug\DuboCalc2._0.Properties.Resources.resources /resource:obj\Debug\DuboCalc2._0.WinFormStrings.resources /resource:Resources\english.resources,DuboCalc2._0.Resources.english.resources /resource:Resources\DuboCalc2._0.i18n.resources,DuboCalc2._0.Resources.DuboCalc2._0.i18n.resources /resource:Entities.bmp,DuboCalc2._0.Entities.bmp /resource:obj\Debug\DuboCalc2.0.exe.licenses /target:winexe /win32icon:DC.ico DCHelp\HelpManager.cs Forms\AxisAnalysisForm.cs Forms\AxisAnalysisForm.Designer.cs Forms\EnvironmentRatiosForm.cs Forms\EnvironmentRatiosForm.Designer.cs Forms\frmAbout.cs Forms\frmAbout.Designer.cs Forms\frmData.cs Forms\frmData.Designer.cs Forms\frmSplash.cs Forms\frmSplash.Designer.cs Forms\Graph.cs Forms\Graph.Designer.cs Forms\LibrarySelectionForm.cs Forms\LibrarySelectionForm.Designer.cs Forms\LibrarySelectionForProject.cs Forms\LibrarySelectionForProject.Designer.cs Forms\LibrarySelectionForUpgrade.cs Forms\LibrarySelectionForUpgrade.Designer.cs Forms\MassBalanceForm.cs Forms\MassBalanceForm.Designer.cs Forms\ProjectPropertiesForm.cs Forms\ProjectPropertiesForm.Designer.cs Forms\ReportSelectionForm.cs Forms\ReportSelectionForm.Designer.cs Forms\SearchResultsForm.cs Forms\SearchResultsForm.Designer.cs Forms\TotalOverviewForm.cs Forms\TotalOverviewForm.Designer.cs Forms\UpdatePreviewForm.cs Forms\UpdatePreviewForm.Designer.cs HelperClasses\DuboCalcSettings.cs HelperClasses\ExcelExporter.cs HelperClasses\ItnterFaces.cs HelperClasses\JSONConverter.cs HelperClasses\ScreenGraber.cs HelperClasses\Utils.cs LibUpdate\LibraryUpdater.cs LibUpdate\ItemComparator.cs ProjectExplorer\GUIMaterial.cs ProjectExplorer\GUIProcess.cs Forms\SearchForm.cs Forms\SearchForm.Designer.cs Forms\DropDownTreeView.cs Forms\frm_AddMaterialProcess.cs Forms\frm_AddMaterialProcess.Designer.cs Forms\ProjectForm.cs Forms\ProjectForm.Designer.cs TypeEditor\CollectionEditor.cs TypeEditor\ExtraPropertiedForm.cs TypeEditor\ExtraPropertiedForm.Designer.cs TypeEditor\LongStringEditor.cs Forms\OptionsForm.cs Forms\OptionsForm.Designer.cs IconManager.cs Icons.cs ProjectExplorer\GUIItemMaterial.cs ProjectExplorer\GUIItemProcess.cs Forms\SimpleSearchForm.cs Forms\SimpleSearchForm.Designer.cs UILongString.cs WinFormStrings.nl-NL.Designer.cs I18n.cs ProjectExplorer\Element.cs Forms\VariantAnalysisForm.cs Forms\VariantAnalysisForm.Designer.cs ProjectExplorer\GUIItem.cs ProjectExplorer\Project.cs ProjectExplorer\XMLHelper.cs DuboCalcMain.cs DuboCalcMain.Designer.cs Program.cs Properties\AssemblyInfo.cs Properties\Resources.Designer.cs Properties\Settings.Designer.cs ProjectExplorer\Variant.cs WinFormStrings.Designer.cs
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\DuboCalcMain.cs(22,7): warning CS0105: The using directive for 'System.Data' appeared previously in this namespace
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\Forms\DropDownTreeView.cs(48,15): warning CS0108: 'DuboCalc2._0.DropDownTreeView.Margin' hides inherited member 'System.Windows.Forms.Control.Margin'. Use the new keyword if hiding was intended.
c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll: (Related file)
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\Forms\frm_AddMaterialProcess.Designer.cs(166,64): warning CS0108: 'DuboCalc2._0.frm_AddMaterialProcess.Name' hides inherited member 'System.Windows.Forms.Control.Name'. Use the new keyword if hiding was intended.
c:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll: (Related file)
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\Forms\ProjectForm.cs(2263,42): warning CS0168: The variable 'ex' is declared but never used
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\DuboCalcMain.cs(289,21): warning CS0162: Unreachable code detected
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\ProjectExplorer\Project.cs(668,20): warning CS0219: The variable 'toc_content' is assigned but its value is never used
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\I18n.cs(28,30): warning CS0168: The variable 'e' is declared but never used
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\Forms\ProjectForm.cs(49,22): warning CS0414: The field 'DuboCalc2._0.ProjectForm.m_multiselect' is assigned but its value is never used
D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\Forms\SearchForm.cs(28,22): warning CS0414: The field 'DuboCalc2._0.SearchForm.rename' is assigned but its value is never used
Compile complete -- 0 errors, 9 warnings
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\AL.exe /culture:nl-NL /out:obj\Debug\nl-NL\DuboCalc2.0.resources.dll /template:obj\Debug\DuboCalc2.0.exe /embed:obj\Debug\DuboCalc2._0.WinFormStrings.nl-NL.resources
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\AL.exe /culture:en-US /out:obj\Debug\en-US\DuboCalc2.0.resources.dll /template:obj\Debug\DuboCalc2.0.exe /embed:Resources\english.en-US.resources,DuboCalc2._0.Resources.english.en-US.resources
DuboCalc2.0 -> D:\Projects\DuboCalc\DuboCalc2.0\DuboCalc2.0\bin\Debug\DuboCalc2.0.exe
Done building project "DuboCalc2.0.csproj".
------ Starting pre-build validation for project 'DuboCalcInstallNoSQL' ------
WARNING: File 'jit.js' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'example1.js' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'Spacetree.css' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'DuboCalcOptions.xml' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'base.css' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'form.html' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'excanvas.js' should not be installed into a User's Profile folder because it may not be available to all users.
WARNING: File 'jit-yc.js' should not be installed into a User's Profile folder because it may not be available to all users.
ERROR: Invalid or unspecified target for shortcut 'DuboCalc 2.1'
ERROR: An error occurred while validating. HRESULT = '80004005'
------ Pre-build validation for project 'DuboCalcInstallNoSQL' completed ------
------ Build started: Project: DuboCalcInstallNoSQL, Configuration: Debug ------
========== Build: 13 succeeded or up-to-date, 1 failed, 0 skipped ==========
I solved this checking the whole project out again and starting from scratch.. took me a whole day, but I fixed it :)
I want to see all commands while building/releasing on the output window.
When I build my app I only see this:
------ Build started: Project: CemKutuphane, Configuration: Debug Any CPU ------
CemKutuphane -> D:\Projects\Test\CemKutuphane\CemKutuphane\bin\Debug\CemKutuphane.dll
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped ==========
There is no csc.exe args in these lines. But visual studio ide is running behind of this.
Is there any way to see the all commands?
dknaack's answer is correct so I'll repeat it in its entirity until he un-deletes it:
You can set the verbosity level on
Options > Projects and Solutions > Build and Run > MSBuild project
build output verbosity
I've tried this and found that setting the logging to "Normal" or above showed the csc.exe command line being executed, like this:
1>CoreCompile:
1> C:\Windows\Microsoft.NET\Framework\v4.0.30319\Csc.exe /noconfig /nowarn:2008,1701,1702 ...
Note that you might need to Clean the project beforehand in order to see this - if the project is already up-to-date then MSBuild will skip several tasks.
When you build in 'quiet' mode in Visual Studio 2008, the output looks like this:
Compile complete -- 0 errors, 0 warnings
------ Build started: Project: JLTA.JBS.UI.Office.VSTODocument, Configuration: Debug Any CPU ------
------ Build started: Project: JLTA.JBS.UI.Office.VSTOWorkbook, Configuration: Debug Any CPU ------
------ Build started: Project: JLTA.JBS.UI.GeneralLedgerUpdater, Configuration: Debug Any CPU ------
Compile complete -- 0 errors, 0 warnings
========== Build: 86 succeeded or up-to-date, 0 failed, 0 skipped ==========
This is good because the last two lines of the output quickly show me the result of the build (success/fail).
In Visual Studio 2010 Microsoft added a build summary after this. So, when I build in VS 2010 with the same settings (eg. 'quiet' option), I get the following displayed after the stuff that's already shown in VS 2008:
------ Build started: Project: JLTA.JBS.UI.TestBed, Configuration: Debug Any CPU ------
========== Build: 78 succeeded or up-to-date, 0 failed, 0 skipped ==========
Build Summary
-------------
00:06.772 - Success - UI\TestBed\JLTA.JBS.UI.TestBed.csproj
00:05.926 - Success - UI\Main\JLTA.JBS.UI.Main.csproj
... <bunch of lines deleted here>
00:00.035 - Success - Bus\Budget\JLTA.JBS.Bus.Budget.csproj
00:00.032 - Success - Core\JLTA.JBS.Core.csproj
Total build time: 01:06.088
This is a step backwards by MS, because now I have to scroll up in the build output window to see whether the build succeeded or not.
Is there any way of getting this back to the old VS 2008 behaviour?
This output is not from Visual Studio or MSBuild, it is provided by the VSCommands add-in - see this blog entry. You can investigate settings for that add-in and see if this summary can be disabled, or remove the add-in so that you no longer see this summary detail.
For those that are interested, I found this with this Google query.
archive.org 2011/12/30 mokosh.co.uk/post/tag/vscommands/
archive.org 2011/09/16 mokosh.co.uk/post/2010/05/03/vscommands-2-2-0-0-released/
I get it like VS2008 by selecting "Minimal" for project build output verbosity (Tools --> Options --> Projects and Solutions --> Build and Run)