1Jan

Visual Studio For Mac Console App No App Config

Hello, In our company, we developp in C#, we have an unit test project and there is an app.config into this project to specify the database used (connectionString). Our units tests use this database to perform the tests. When we running tests using Visual Studio task in build vNext, the app.config doesn't seem to be taken in account: we got this message 'Unable to create instance of class '.' Error: System.Data.SqlClient.SqlException: CREATE DATABASE permission denied in database 'master'.

How can we use this app.config for the Visual Studio Test in build vNext? Bests regards, Gilles. This doesn't seem to work when it comes to assembling binding redirects. I have a test project that requires this in the app.config: And while that works fine when running locally, it appears that these binding redirects are ignored by the Visual Studio Test task. Setting the app.config to copy to the build output folder doesn't help.

Powerpoint Ok, this has come back again. Getting System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) for anything that tries to create an HttpClient with a JsonMediatTypeFormatter. System.Net.Http.Fomatting refs v6 of Netwonsoft.

Studio

Option 1: Use the Visual Studio Code Terminal (integrated terminal); Option 2: Use. The debug configuration select Integrated Terminal/Console; Start debugging. In the Terminal/Console Window and not in the Python Debugger console.

But my app.config does the appropriate bingingRedirect. Everything works just fine locally. But in vsts it seems to ignore the redirects. Any clues or debugging techniques gratefully received. I'm running into a related issue (the title would be about the same). I have many tasks and a single connection-string file referred to at the top of the configs for each test project: Error: System.Configuration.ConfigurationErrorsException: Unable to open configSource file '. No matter what relative path I give it, I always get the error.

It's in the same directory. I've referred to it as both 'connectionStrings.config' and '.

ConnectionStrings.config', as well as pointing to each of the directories above it. I looked in VSTest.ps1 (the PS script behind the task), in order to investigate more about the flow, but it refers to Invoke-VSTest, which isn't seeming defined as clear-text PowerShell logic anywhere on my disk. So, I'm assuming it's defined in an assembly somewhere. I should mention that I'm running this from a release-process. Since this task doesn't seem to indicate that it is expected to run either only under build mode or release mode, I'm assuming that this is valid. The task is passing $workingDirectory as a parameter to Invoke-VSTest.

This is set to the release staging directory. In this/my case, this is 'D: Agents A3_work 464b36816'. I also tried putting the connection-string file there, but it didn't make a difference. We're getting a similar error which I think may be related.

One of our test projects tests some code which uses ClaimsPrincipalPermissionAttribute. When we run the tests locally they work correctly but when we run the tests on the server the test runner complains that the system.identityModel element is missing from the configuration. Use of ClaimsPrincipalPermission attribute has been attempted and possibly there is no configuration section defined That setting is definitely there in our test projects app.config but presumably that's not the app.config that's being used in the context of the test runner.

How can we get this setting into that context?