Is there a Chrome embedded in Visual Studio Code - google-chrome

Version: 1.49.0 (system setup)
Commit: e790b931385d72cf5669fcefc51cdf65990efa5d
Date: 2020-09-10T13:22:08.892Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.17763
There is a Chrome version in Visual studio code (Help -> About).what does it mean ?
Is there a embedded chrome in VScode or V8 needs chrome to run?

Visual Studio Code is one of many applications built on the Chromium platform, via the "Electron" framework. See e.g. https://arstechnica.com/information-technology/2015/04/microsofts-new-code-editor-is-built-on-googles-chromium/.
Another IDE built on Electron/Chromium is GitHub's Atom.
For more information, see https://en.wikipedia.org/wiki/Electron_(software_framework); and for a similar project: https://en.wikipedia.org/wiki/Chromium_Embedded_Framework.

Related

Can't get TeamCity to use C# 7.1 - but works manually using msbuild

I have TeamCity 2019.1.5 with most recent Visual Studio Tool 2017 installed:
I have a project which uses C# 7.1 features, and it compiles locally just fine in VS 2017, and I made sure it has <LangVersion>latest</LangVersion> in CSPROJ file. But when I run it from TeamCity (agent is on the same server) with the following build step:
it fails with the following error in the logs:
[Csc] Services\MappingService.cs(1942, 40): error CS8107: Feature 'default literal' is not available in C# 7.0. Please use language version 7.1 or greater.
If I start VS2017 command prompt on the server and go to the project's folder and run msbuild tt.csproj /target:Rebuild it works fine: compiles and I do not get any errors. Needless to say, if I remove C# 7.1-specific code, everything works in the current configuration.
I installed Visual Studio Tool 2019 and with MSBuild 16 it works without any problems as well. But I prefer to use 2017 tools so both server and dev environments are the same. What can cause this issue?
I had this problem and fixed it by fixing the solution configuration in the build step configuration. It needs to be set to either "Debug" or "Release". Mine was set to a parameter, which resolved to something other than one of those values.

Windows Store Certification Metadata test failes

When I run my program in debug mode, it runs nicely. Now that I want to upload it to the Windows Phone Store, it creates the App Package, but when running the Windows App Certification Kit, it returns the following error:
General metadata correctness test - failed
with the reason:
In the Winmd-File "myBackgroundPart.winmd" (that's my RunTime Component) there is missing "WindowsRuntime 1.3" or "WindowsRuntime 1.2" in the versionstring. The versionstring of the file is "WindowsRuntime 1.4;CLR v4.0.30319".
My environment is Visual Studio 2015 CTP5. The error message suggests, that my WinRT is too new for Store!? How do I downgrade it then?
Edit
This was an issue with VS2015 CTP5, with the new released CTP6 yesterday it was solved.
You need to build your app using Visual Studio 2013 (Update 4 is the latest). Note that Visual Studio 2015 does not have a "go live" license, meaning you can't use it for production purposes anyway. You need to wait until it is released.
Also, when you built the component, what Project Type did you choose? If you built a project for Windows 8.x then I don't think it should have used version 1.4 metadata. Did you build / test on Windows 10 Preview by any chance?

Chrome error "you are using an unsupported command-line flag: --ignore-certificate-errors."

I am using Coded UI for testing my web application on Chrome. I am using the Cross Browser support offered by Coded UI.
I am using the below versions -
Visual Studio: 2013
selenium dotnet bindings: 2.43
When I start the web application in Chrome with BrowserWindow.CurrentBrowser = "Chrome", the chrome browser opens with the popup - "you are using an unsupported command-line flag: --ignore-certificate-errors. ...".
I found some suggestions on web but those seem to be for those who are directly using Selenium.
But, they do not seem to be applicable here as I am using Coded UI.
Can anyone tell me how do I address this problem?
Regards,
kvk1985
Please use below code, it worked me...
IWebDriver driver;
ChromeOptions options = new ChromeOptions();
options.AddArguments("--disable-extensions");
options.AddArgument("test-type");
options.AddArgument("--ignore-certificate-errors");
options.AddArgument("no-sandbox");
driver = new ChromeDriver(options);
driver.Manage().Window.Maximize();
driver.Navigate().GoToUrl("https://ahn-qa2.aon.com/home.aspx");
I was experiencing the same issue in Visual Studio 2013 Premium Update 4.
The latest version of chromedriver.exe (2.12) addressed the issue for us.
Download the applicable zip from the 2.12 directory at http://chromedriver.storage.googleapis.com/index.html
Right click on the downloaded zip file.
Select "properties".
Under "General" tab, click on the "Unblock" button.
Now unzip both the files and copy the contents to the following path. Copy over the existing version of chromedriver.exe
"%ProgramFiles%\Common Files\microsoft shared\VSTT\Cross Browser Selenium Components" (for 32 bit machines)
"%ProgramFiles(x86)%\Common Files\microsoft shared\VSTT\Cross Browser Selenium Components" (for 64 bit machines)
Launch Chrome with BrowserWindow.CurrentBrowser = "Chrome" again, the message should be gone.

Multi Device Hybrid Apps - Unable to launch Ripple - Chrome not found

After installing the Multi-Device Hybrid Apps (Preview) for Visual Studio CTP2 Extension in Visual Studio 2013 on Windows 7 x64, I am unable to launch a new Multi-Device Hybrid App in Ripple.
Details:
When Installing the Extension I chose not to install Chrome as it was already installed
Opening the solution displays an error message We've detected issues with your system's environment configuration along with Google Chrome - The software is missing from your system. You may have to configure it after installation. A link to the instructions is provided.
On the instruction page the link for chrome is simply to the chrome install page
Chrome is already installed in C:\Users\username\AppData\Local\Google\Chrome\Application\chrome.exe
Attempting to launch the application with the Ripple - Nexus (Galaxy) setting causes the error Chrome must be installed in order to launch the app in Ripple
I am able to launch the app on both the Android emulator and an Android device
What changes do I need to make to my configuration for the project to launch Chrome?
You are seeing this issue because it is currently hard-coded to look for Chrome in
%PROGRAMFILES%\Google\Chrome\Application\chrome.exe
but you have it installed in your Users folder.
To workaround this, please re-install Chrome to your %Program Files% folder.

Build nuget package in Release mode?

I've updated my Windows Phone app from 8 to 8.1. Everything works, no problems testing it in either debug or release modes.
The issue is when I try to certify the app for the Store. I get the following notice about my Nuget package ImageTools:
The binary ICSharpCode.SharpZLib.Phone.dll is built in debug mode.
The binary ImageTools.Controls.dll is built in debug mode.
The binary ImageTools.dll is built in debug mode.
The binary ImageTools.Filtering.dll is built in debug mode.
The binary ImageTools.IO.Png.dll is built in debug mode.
The binary ImageTools.Utils.dll is built in debug mode.
I didn't have this problem in WP8. Perhaps something went wrong in the project upgrade? I've tried reinstalling the nuget package as well as manually placing the DLLs into the project.
I don't know how to build ImageTools in release mode. Any help appreciated!
Universal Apps (And Silverlight 8.1 Apps) have a different certification requirement. You cannot publish assemblies built in debug mode.
You'll need to contact the NuGet authors of ICSharpCode and ImageTools and have them provide you with a version built in release mode.
I modified the IL of the assemblies and removed the [Debuggable] attribute from them. The Windows Phone Store now allows the submission. You can download the patched assemblies here: https://github.com/brianhama/ImageTools-WP81