Received compile error when upgrading from 2018R1 to 2018R2 - acumatica

I have an instance with our custom project and the Amazon Integration project published. Both projects work fine in 2018R1. During the upgrade I had to update the database first and then the application. The regular update of both at the same time did not work. Once the update completed and I tried to logon, the following trace appeared:
Publish Customization
Compiled projects: ARMCustomizations,BQLExecutor,CustomRepGISiteMap,LingoEDI,AmazonIntegration
Validation started.
Copying the website C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_cs\cs207500.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_cs\cs207500.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\Pages_SM\SM909090.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\Pages_SM\SM909090.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_so\so101000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_so\so101000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_so\so301000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_so\so301000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_so\so302000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_so\so302000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_so\so501000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_so\so501000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_so\so503000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_so\so503000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_tx\tx205000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\CstPublished\pages_tx\tx205000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\App_RuntimeCode\BQLExecutor.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Bin\CookComputing.XmlRpcV2.dll
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Bin\LingoApi.dll
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Bin\LingoEDI.dll
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Bin\MarketplaceWebServiceFeeds.dll
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Bin\MarketplaceWebServiceOrders.dll
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Bin\MarketplaceWebServiceSellers.dll
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Bin\MWSClientCsRuntime.dll
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Bin\PX.AmazonIntegration.dll
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Bin\PX.AmazonIntegration.pdb
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\GLAccountsLiability.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\image00301.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\image00901.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\image01101.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\image01301.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\image01501.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\image01701.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\image01901.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\image02101.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\MarketplaceConfiguration01.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\New Schedule Import Orders.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\New SO Clear Log.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\New Submit FBM Shipment Info.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\New Import FBA Tracking Number.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\New Import Orders.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\New SH Clear Log.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\SO Preferences.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\SOORER Preferences.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\TaxCategories1.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\Taxes1.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Icons\Amazon_Integration_Images\TaxZone Screen.png
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED201000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED201000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED202010.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED202010.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED203010.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED203010.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED204020.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED204020.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED205000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED205000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED209999.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED209999.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED401000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED401000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED501000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED501000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED502000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED502000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED503000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED503000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED504000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED504000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED505000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED505000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED506000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED506000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED507000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\ED\ED507000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SM\SM909090.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SM\SM909090.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO204000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO204000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO401000.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO401000.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO401001.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO401001.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO509100.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO509100.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO509200.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO509200.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO509300.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO509300.aspx.cs
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO509400.aspx
Patching the file C:\Program Files (x86)\Acumatica ERP\Customization\2018R2\2018R2Validation\2018R2Website\Pages\SO\SO509400.aspx.cs
Done
Validating Binary Files
LingoEDI.dll Failed to resolve type reference: PX.Objects.Common.PXOrderedSelect`5 declared in PX.Objects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Fixed binding: Transactions from PX.Objects.SO.SOOrderEntry
Fixed binding: Adjustments from PX.Objects.AR.ARPaymentEntry
PX.AmazonIntegration.dll Failed to resolve type reference: PX.Objects.Common.PXOrderedSelect`5 declared in PX.Objects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Fixed binding: Transactions from PX.Objects.SO.SOOrderEntry
Validation failed.
The code works fine in 2018R1. I assumed I just needed to recompile so I built the dev environment in this instance and compiled successfully. When I tried to run it, I got this error:
Server Error in '/2018R2' Application.
Cannot load a reference assembly for execution.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.BadImageFormatException: Cannot load a reference assembly for execution.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[BadImageFormatException: Cannot load a reference assembly for execution.]
[BadImageFormatException: Could not load file or assembly 'System.ValueTuple' or one of its dependencies. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058)]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +225
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +110
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +22
System.Reflection.Assembly.Load(String assemblyString) +34
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +48
[ConfigurationErrorsException: Could not load file or assembly 'System.ValueTuple' or one of its dependencies. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +767
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +256
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +58
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +281
System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +69
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +137
System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +848
[HttpException (0x80004005): Could not load file or assembly 'System.ValueTuple' or one of its dependencies. Reference assemblies should not be loaded for execution. They can only be loaded in the Reflection-only loader context. (Exception from HRESULT: 0x80131058)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +714
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3160.0
My project is compiled in .net 4.7.1. Any ideas why this would happen. The initial error indicates the same issue with my project and the Amazon project both relating to the sales order screen.
LingoEDI.dll Failed to resolve type reference: PX.Objects.Common.PXOrderedSelect`5 declared in PX.Objects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Fixed binding: Transactions from PX.Objects.SO.SOOrderEntry
Fixed binding: Adjustments from PX.Objects.AR.ARPaymentEntry
PX.AmazonIntegration.dll Failed to resolve type reference: PX.Objects.Common.PXOrderedSelect`5 declared in PX.Objects, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Fixed binding: Transactions from PX.Objects.SO.SOOrderEntry
Validation failed.
Any ideas what is causing this?

The Acumatica 2018 R2 Technical Release notes mention that PXOrderedSelect family has been moved from PX.Objects to PX.Data. The Amazon Integration and LingoEDI librairies will need to be updated.
As for your other error, this is related to your project references and conflicting packages that got moved to your bin/ directory on build. The following link may be helpful: Could not load file or assembly 'System.ValueTuple'

Related

MSB6006 : node.exe exited with code 1" in VS2019

When I build my new project in .Net Core VS2019 the build gets failed with an error. The project have some css and js files which uses typescript that cause this error. But I don't know what went wrong or what might be the cause of it.
I tried installing and unistalling the latest and old version of typescript and also installed the node.JS
The detailed output I get when I build is :
Task "VsTsc"
1> C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\NodeJs\node.exe "C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.4\tsc.js" --project "D:\Piccolo.Admin\Piccolo.Admin\wwwroot\assets\vendors\general\summernote\tsconfig.json" --listEmittedFiles --locale en-US
1> Unknown output: throw e;
1> Unknown output: ^
1> Unknown output: at Object.createNode (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.4\tsc.js:16472:20)
1> Unknown output: at createSynthesizedNode (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.4\tsc.js:60303:23)
1> Unknown output: at Object.createTypeQueryNode (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.4\tsc.js:60891:20)
1> Unknown output: at symbolToTypeNode (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.4\tsc.js:34983:31)
1> Unknown output: at createAnonymousTypeNode (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.4\tsc.js:34315:36)
1> Unknown output: at typeToTypeNodeHelper (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.4\tsc.js:34251:28)
1> Unknown output: at C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.4\tsc.js:34042:106
1> Unknown output: at withContext (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.4\tsc.js:34083:37)
1> Unknown output: at Object.typeToTypeNode (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.4\tsc.js:34042:28)
1> Unknown output: at typeToString (C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.4\tsc.js:34021:40)
1> C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.4\build\Microsoft.TypeScript.targets(462,5): error MSB6006: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\NodeJs\node.exe" exited with code 1.
1> Done executing task "VsTsc" -- FAILED.
I have the same error when I want to publish my project
C:\Program Files (x86)\Microsoft SDKs\TypeScript\3.7\build\Microsoft.TypeScript.targets(463,5): error MSB6006: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\MSBuild\Microsoft\VisualStudio\NodeJs\node.exe" exited with code 1.
I set "MSBuild project build output verbosity" to "Detailed" in "Tools->Options->Projects and Solutions->Build and Run" and I see VS want to compile several .ts files and can't do that.
this is my .ts files can't compile
4>Target "CompileTypeScript" skipped, due to false condition; ('$(BuildingProject)' != 'false' AND '#(ConfigFiles)' == '' AND '#(TypeScriptCompile)' != '' AND '$(DesignTimeBuild)' != 'true') was evaluated as ('true' != 'false' AND 'App_Themes\Dashboard\Vendors\summernote\tsconfig.json' == '' AND 'App_Themes\Dashboard\Vendors\handlebars\lib\handlebars.d.ts;App_Themes\Dashboard\Vendors\moment\moment.d.ts;App_Themes\Dashboard\Vendors\perfect-scrollbar\types\perfect-scrollbar.d.ts;App_Themes\Dashboard\Vendors\popper.js\index.d.ts;App_Themes\Dashboard\Vendors\sweetalert2\sweetalert2.d.ts;App_Themes\Dashboard\Vendors\tooltip.js\index.d.ts;Scripts\index.d.ts' != '' AND '' != 'true').
I exclude these files and successfully published my project
you can exclude .ts file(s) from your project or modify and try again
In my case, I've Changed the ECMAScript to project requirements.
Best regards.
exclude node_modules folder from the project when you publish it

Net-SNMP : Unable to build in VC 2017 Version 15

I have recently download Net-SNMP code from their website and trying to build in VC 2017 - and it fails.
The extracted folder has win32.dsp and win32dll.dsp - when I try to open in VC IDE I get error like -
Message
snmptrapd\snmptrapd.dsp: Unable to convert project. Please make sure this is a valid Visual C++ 6.0 project.
snmptrapd\snmptrapd.dsp: Project upgrade failed.
snmptrapd\snmptrapd.dsp: Converting project file 'C:\tools\netsnmp\net-snmp-5.8\win32\snmptrapd\snmptrapd.dsp'.
Hide 1 additional messages
Almost for all projects - the build via command line 'nmake' utility also fails with below error -
cd libagent
nmake /nologo all
cl.exe /I.. /I..\..\include /I..\..\agent\mibgroup /D WIN32 /D _BIND_TO_CURRENT_VCLIBS_VERSION /D _CONSOLE /D _CRT_NONSTDC_NO_WARNINGS /D _CRT_SECURE_NO_WARNINGS /D _MBCS /D _WINSOCK_DEPRECATED_NO_WARNINGS /EHsc /FD /FR.\release\ /Fd.\release\libagent.pdb /Fo.\release\ /I C:\OpenSSL-Win32\include /c /W3 /Zi /nologo /wd4244 /wd4267 /MD /D NDEBUG /O2 ..\..\agent\agent_handler.c ..\..\agent\agent_index.c ..\..\agent\agent_read_config.c ..\..\agent\agent_registry.c ..\..\agent\agent_sysORTable.c ..\..\agent\agent_trap.c ..\..\agent\snmp_agent.c ..\..\agent\snmp_vars.c
agent_handler.c
..\..\agent\agent_handler.c(19): fatal error C1083: Cannot open include file: 'sys/types.h': No such file or directory
agent_index.c
..\..\agent\agent_index.c(12): fatal error C1083: Cannot open include file: 'signal.h': No such file or directory
agent_read_config.c
..\..\agent\agent_read_config.c(16): fatal error C1083: Cannot open include file: 'sys/types.h': No such file or directory
agent_registry.c
..\..\agent\agent_registry.c(32): fatal error C1083: Cannot open include file: 'signal.h': No such file or directory
agent_sysORTable.c
..\..\agent\agent_sysORTable.c(3): fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory
agent_trap.c
..\..\agent\agent_trap.c(35): fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory
snmp_agent.c
..\..\agent\snmp_agent.c(50): fatal error C1083: Cannot open include file: 'sys/types.h': No such file or directory
snmp_vars.c
..\..\agent\snmp_vars.c(68): fatal error C1083: Cannot open include file: 'string.h': No such file or directory
Generating Code...
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\bin\Hostx64\x64\cl.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.15.26726\bin\Hostx64\x64\nmake.EXE"' : return code '0x2'
Stop.
How can we resolve the issue?
If you built with OpenSSL you may have set INCLUDE and LIB paths and replaced the ones set by vcvars. If you set INCLUDE and LIB before running vcvars it will probably work. I concatenated to them to fix the issue.
I can't build directly from VS2017 neither.
According to the file README.win32, install ActivePerl first, then run win32\build.bat.
Updated: I have just push a branch that fixed compilation issue. Have a look at this: https://github.com/sanbrother/net-snmp/tree/VS2017/v5.8
(solution file net-snmp\win32\win32dll.sln)
PS: It seems that, old version (may be before 5.7.3???) has no such problems. New code split some files into multiple ones, and caused compilation issue under Windows.

Xamarin Native Xamarin.iOS.Common.targets Error

I recieved the following build error for a Xamarin iOS project.
Severity Code Description Project File Line Suppression State
Error AggregateException: One or more errors occurred.
MessagingRemoteException: An error occured on client Build490752 while executing a reply for topic xvs/Build/4.9.0.752/execute-task/AdvisedClient.iOS/a4a40d4002fACTool
FileNotFoundException: Could not load file or assembly 'System.Json, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. AdvisedClient.iOS C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets 1206
The Xamarin.iOS.Common.targets file states clearly not to edit it. What gives?

MSBuild F# project with AssemblyInfo.fs file. Error during CoreCompile with fsc.exe

I have problem with building my solution by MSBuild.
In my solution I have the F# projects to which I have added the AssemblyInfo.fs files, such file looks as follows:
namespace namespaceName
open System.Reflection
open System.Runtime.CompilerServices
open System.Runtime.InteropServices
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[<assembly: AssemblyTitle("assemblyName")>]
[<assembly: AssemblyDescription("")>]
[<assembly: AssemblyConfiguration("")>]
[<assembly: AssemblyCompany("")>]
[<assembly: AssemblyProduct("assemblyName")>]
[<assembly: AssemblyCopyright("Copyright © 2013")>]
[<assembly: AssemblyTrademark("")>]
[<assembly: AssemblyCulture("")>]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[<assembly: ComVisible(false)>]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[<assembly: Guid("9b60cdeb-57b8-4e08-b713-1be614a449cd")>]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the ‘*’ as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[<assembly: AssemblyVersion("1.0.0.0")>]
[<assembly: AssemblyFileVersion("1.0.0.0")>]
()
When I compile my solution in Visual Studio 2012 I do not have any problems. All assemblies are build with a nice information about version.
The problem is with the TFS Builds (I have the TFS 2012). The build of my solution always fails. The error origins in the CoreCompile fsc.exe step and it is about the AssemblyInfo.fs file:
Project "D:\path\projectMaster.csproj" (40) is building "D:\path\projectName.fsproj" (41) on node 1 (default targets).
PrepareForBuild:
Creating directory "obj\Release\".
Creating directory "bin\Release\".
GenerateTargetFrameworkMonikerAttribute:
Skipping target "GenerateTargetFrameworkMonikerAttribute" because all output files are up-to-date with respect to the input files.
CoreCompile:
C:\Program Files (x86)\Microsoft SDKs\F#\3.0\Framework\v4.0\fsc.exe -o:obj\Release\projectName.dll --debug:pdbonly --noframework --define:TRACE --doc:bin\Release\projectName.XML --optimize+ -r:D:\path\r1.dll -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\3.0\Runtime\v4.0\FSharp.Core.dll" -r:D:\path\r2.dll -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Core.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Data.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.dll" -r:"C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\System.Numerics.dll" --target:library --warn:3 --warnaserror:76 --fullpaths --flaterrors --highentropyva- "C:\Users\userName\AppData\Local\Temp\.NETFramework,Version=v4.0.AssemblyAttributes.fs" folder1\file1.fs folder1\file2.fs folder2\file1.fs
D:\path\projectName\AssemblyInfo.fs(37,10): error FS0010: Unexpected symbol ':' in expression. Expected ']' or other token. [D:\path\projectName\projectName.fsproj]
D:\path\projectName\AssemblyInfo.fs(37,1): error FS0598: Unmatched '[' [D:\path\projectName\projectName.fsproj]
D:\path\projectName\AssemblyInfo.fs(40,1): error FS0010: Incomplete structured construct at or before this point in implementation file [D:\path\projectName\projectName.fsproj]
Done Building Project "D:\path\projectName\projectName.fsproj" (default targets) -- FAILED.
I have no idea why the fsc.exe in MSBuild have problem with my AssemblyInfo.fs files.
What is more strange, when I use the "Developer Command Prompt for VS2012" and I execute exactly the same MSBuild or fsc.exe commands everything goes fine. I do not have any errors. So it seems that the TFS Build have some strange problems which I am not able to reproduce on my machines even if I run the same commands.
Thank you for any help!

OpenNI 2 and Visual Studio 2012

I just downloaded OpenNI 2 SDK (www.openni.org) and I am trying to setup a project in Visual Studio 2012.
What I did:
Create a new C++ Win32 Console Application Project
Go to Project>MyProject Properties and, in Configuration Properties>VC++ Directories...
Added C:\Program Files (x86)\OpenNI2\Redist\; to Executable Directories
Added C:\Program Files (x86)\OpenNI2\Include\; to Include Directories
Added C:\Program Files (x86)\OpenNI2\Redist\; to Reference Directories
Added C:\Program Files (x86)\OpenNI2\Lib\; to Library Directories
But when I try to build I have the following unresolved symbol error (where ConsoleApplication1 is my project's name)
Error 1 error LNK2019: unresolved external symbol
__imp__oniInitialize referenced in function
"public: static enum openni::Status __cdecl openni::OpenNI::initialize(void)"
(?initialize#OpenNI#openni##SA?AW4Status#2#XZ)
c:\Users\MyPC\documents\visual studio 2012\Projects\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj
ConsoleApplication1
I know this linking error is saying that the linker can't find some libraries but I thought what I just did was enough.
I also tried the 64 bit version, creating a 64 bit project, but I have the same errors.
I couldn't find satisfying documentation on this topic.
I'm sure I'm missing something silly. Can you please give some advice on this?
Also you should do the below steps:
0-In the C/C++ section, under the "General" node, select
"Additional Include Directories"
and add
"$(OPENNI2_INCLUDE)" (if you use the 32-bit version) or
"$(OPENNI2_INCLUDE64)" (if you use the 64-bit version).
These are environment variables that point to the location of the OpenNI Include directory. (The defaults are :
C:\Program Files\OpenNI2\Include or
C:\Program Files (x86)\OpenNI2\Include)
1-In the Linker section, under the "General" node, select
"Additional Library Directories"
and add
"$(OPENNI2_LIB)" (if you use the 32-bit version) or
"$(OPENNI2_LIB64)" (if you use the 64-bit version).
These are environment variables that point to the location of the OpenNI Lib directory. (The defaults are:
C:\Program Files\OpenNI2\Lib or
C:\Program Files (x86)\OpenNI2\Lib)
2-In the Linker section, under the input node, select
"Additional Dependencies"
and add
OpenNI2.lib or OpenNI2.lib
3-Ensure that you add the Additional Include and Library directories to both your Release and Debug configurations.
4-Copy all the files from OpenNI's redist directory (see environment variable "$(OPENNI2_REDIST)" or "$(OPENNI2_REDIST64)") to your working directory. (The defaults are
C:\Program Files\OpenNI2\Redist or
C:\Program Files (x86)\OpenNI2\Redist).
Be aware that when you run from command line, the working directory is the directory where the executable can be found, and where you run from Visual Studio the default directory is where the project file (.vcproj, .vcxproj) can be found.
you also need to point to the actual library file: openni2.lib
If you add all of options (Include, Lib, ...) to your project setting and again get this error, maybe your project platform is Win32 and you want to use OpenNI x64
In this case, you must change the platform to x64 (Project properties at the top of the page)
If you don't have x64 option, make a new one ;)

Resources