BlankCordovaApp first run configuration - visual-studio-2013

I'm trying to create a BlankCordovaApp with visual studio 2013 and installed all the pre-requests as far as I know but there is still errors and warnings in output window.
I've done configurations for system environment so VS could find all it's needs.
What's this error about and how could I find and guidance for it? Thank you
Error 15 The command ""C:\Users\MyPC\AppData\Roaming\npm\node_modules\vs-mda\vs-cli" build --platform "Windows-
AnyCPU" --configuration "Debug" --projectDir . --projectName "BlankCordovaApp2" --language "en-US" "--AnyCPU"" exited with
code 1. C:\Users\MyPC\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets 96 5
BlankCordovaApp2
When I click on error VS shows these lines of codes
<Exec Command='"$(AppData)\npm\node_modules\vs-mda\vs-cli" build --platform "$(Platform)" --configuration "$(Configuration)" --projectDir . --projectName "$(ProjectName)" --language "$(LangName)" "--$(Platform.Substring(8))"' Condition=" '#(BuildMDACpuSpecificPlatform)' != '' " CustomErrorRegularExpression="$(MDACustomErrorRegEx)" StdOutEncoding="UTF-8" StdErrEncoding="UTF-8"/>

Error Code 1 almost always suggests that the Windows SDK is missing. To fix that, do the following:
In Control Panel, choose Programs and Features. Select Visual Studio 2013 from the list, and then choose Change. In the Visual Studio setup window, choose Modify. In the features list, ensure that these 2 options are check marked:
Tools for Maintaining Store apps for Windows 8
Windows Phone 8.0 SDK
Once you're done installing these packages, try building the app again, the problem should have been resolved.

Related

Xamarin.forms project in Mac terminal without Visual Studio

I'm trying to build a job for Xamarin.forms project in mac terminal without UI method. but, not sure which are the tools are mandatory to be installed. Could anyone help here ?
Installed : Dotnet Core 6 version of visual studio SDK
Build need to be fully in terminal(mac-command line)
Need to do without visual studio application
Why not try build the app from the command line using MSBuild and see what errors it gives you. That way, you can find out what's missing and add things until it builds.
I'm using this command to build my apps from Windows (you may need to change a few things on Mac):
"C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\amd64\msbuild.exe" C:\Projects\MyApp\src\MyApp\MyApp.iOS\MyApp.iOS.csproj /p:Platform=iPhone /p:BuildIpa=true /p:IpaPackageDir=C:\Projects\MyApp\artifacts\App_iOS /p:IpaPackageName=MyApp.ipa /p:ServerAddress=192.168.0.23 /p:ServerUser="Username" /p:ServerPassword=123456SafePassword /p:ContinueOnDisconnected=false /p:Configuration=Release /restore /target:Build /verbosity:Normal
Here's some useful info on Continuous Integration with Xamarin.

CS1617: Invalid option '10' for /langversion

While building this open source C# project in AppVeyor, I get the error:
CSC : error CS1617: Invalid option '10' for /langversion. Use '/langversion:?' to list supported values.
See the build log.
In build settings, Visual Studio 2022 is selected as the build worker image and the Preinstalled Software page lists both .NET 5 and 6 SDKs for that image.
What am I missing? Why is it using MSBuild 16 and not 17?
The problem was that appveyor.yml in the repo had Visual Studio 2019 in it as the worker image. The way AppVeyor works, the yml file takes precedence over UI settings.
According to your description, the error: CSC : error CS1617: Invalid option '10' for /langversion. Use '/langversion:?' to list supported values. is caused by not using C#10 in vs2022 and .NET6.0 environment.
We can see from the build log you provided that the build is using MSBuild16 in VS2019.
We can find the MSBuild.exe installed with Visual Studio 2022 Community from C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe.
We have not used AppVeyor. Maybe you can try specifying the path for MSBuild(17) in command line(not sure whether AppVeyor uses command line to build?) to compile it or just select VS2022 and .NET6.0 when you choose build settings.
lanch the solution with VS2022 and that resolve the problem

How to use movesense simulator?

I am new to visual studio... Can somenone tell me how to Use the movesense simulator I generated the CMake files and stored it in a folder....you can refer the documentation here(http://www.movesense.com/docs/esw/getting_started/).
cmake -G "Visual Studio 15 2017" -DMOVESENSE_CORE_LIBRARY=../MovesenseCoreLib/ -DCMAKE_BUILD_TYPE=Release ../samples/jumpmeter_app
I ran this code on the terminal to generate the solution file....In the documentation this is written
"The cmake will generate the Visual Studio solution-file (Project.sln) in the build directory. Just open it with the Visual Studio IDE, select "Movesense" project as a "Startup project" and "Debug" it."
But when I run the solution file I don't see anything on the VS screen...It just starts the file and after I while I see ready on the bottom left corner...I want to do some PUT,DELETE commands on the sensor using the whiteboard API....How can I do thatenter image description here

Visual Studio 2015 does not build my (blank) Cordova projects: Build fails without error

I am using Visual Studio Enterprise 2015 to create Cordova projects. The project gets created successfully and I am able to play around with the source code. Before I actually change something and I try to build the empty starting project, Visual Studio will give me the following build message:
1>------ Build started: Project: BlankCordovaApp4, Configuration: Debug Android ------
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
The error List is completely empty and I cannot see anything in other output windows nor the command window.
I have looked around to activate the diagnostic log level when building (Tools > Options > Projects and Solutions > Build and Run > MSBuild output verbosity) but that didn't help... I'm still seeing the same non-descriptive message.
I am on Windows 10 with the following programs installed:
Node JS 4.0.0
Cordova installed with the npm tool (npm install -g cordova)
Android Studio and its Emulators
Visual Studio 2013 Ultimate Update 4
Visual Studio 2015 Enterprise Edition (with Cordova Tools)
I have been successfully creating Cordova apps with Visual Studio 2013 with the tools and with Visual Studio 2015 RC. But I can't seem to make it work anymore in the current build.
I have tried Repairing Visual Studio as well as uninstalling and reinstalling it completely, without avail. I have also cleared the Cordova cache multiple times and tried to run Visual Studio from Administrator mode, but that didn't work either.
So the question actually is twofold:
Is there a way to see what actually is going wrong when I'm trying to build?
Has anybody else experienced this kind of issue and found a solution for it?
We connected to Diedrik's machine and debugged the problem. There is a bug in Visual Studio which we will fix shortly.
For now, here is a workaround:
Open Tools -> Options -> Tools for Apache Cordova -> Remote Agent Configuration
Set Enable remote iOS processing to “False”
Click OK
(Optional if remote build is needed) Re-open the options and set it back to “True”
Thank you for reporting this problem!
I have experienced it and I fixed it closing everything and restarting windows after that it hasn't happened again, I think Visual Studio 2015 has a bug or something
In my case, I was having the same issue after upgrading VS 2015 RC to Enterprize. I then run the installer again and this time selected Cordova Update 4 rather than 3 which was selected by default. After install completed, I was able to build Cordova apps successfully. Didn't have to change anything in remote iOS processing.

Error when attempting to run new blank hybrid app

I currently get the following error when attempting to run a hybrid app using the new cordova ctp for Visual Studio 2013.
Error 11 The command
""C:\Users\Nick\AppData\Roaming\npm\node_modules\vs-mda\vs-cli"
prepare --platform Android --configuration Debug --projectDir .
--projectName "BlankCordovaApp2"" exited with code 1. C:\Users\Nick\AppData\Roaming\npm\node_modules\vs-mda-targets\Microsoft.MDA.targets 115 5 BlankCordovaApp2
Do I need to install something else?
In certain cases, VS does not immediately detect the Android path after installation. Rebooting your machine is the only option for now.
for me I just deleted the bld folder and everything has become right

Resources