Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example is not working as expected #666

Closed
devmariodiaz opened this issue Oct 25, 2021 · 6 comments
Closed

Example is not working as expected #666

devmariodiaz opened this issue Oct 25, 2021 · 6 comments
Labels

Comments

@devmariodiaz
Copy link

devmariodiaz commented Oct 25, 2021

Hello Stef,

Thanks for all your help.

I want to report to you, that this example that you provide me some days ago is not working, is not taking the launchsettings.json parameters, is taking default parameters.

https://github.com/WireMock-Net/WireMock.Net/tree/dc078b57ea463e2c9c7da7f6579af34000596446/examples/WireMock.Net.StandAlone.NETCoreApp

Screen Shot 2021-10-25 at 4 25 47 PM

Could you please to take a look at this?

@StefH
Copy link
Collaborator

StefH commented Oct 26, 2021

When running in VS2022, this works fine for me:
image

@devmariodiaz
Copy link
Author

devmariodiaz commented Oct 26, 2021

Thanks, Stef,

I wonder, Maybe because I'm running it on mac OS? Could have any environment configuration difference?

@StefH
Copy link
Collaborator

StefH commented Oct 26, 2021

What happens if you run dotnet run command? Like:

dotnet run --framework netcoreapp3.1 -- --Urls http://localhost:12345

Result at my windows pc:

PS C:\Dev\GitHub\WireMock.Net\examples\WireMock.Net.StandAlone.NETCoreApp> dotnet run --framework netcoreapp3.1 -- --Urls http://localhost:12345
2021-10-26 18:17:01,031 [1] DEBUG Program - WireMock.Net server arguments ['--Urls', 'http://localhost:12345']
2021-10-26 18:17:01,106 [1] INFO  Program - By Stef Heyenrath (https://github.com/WireMock-Net/WireMock.Net)
2021-10-26 18:17:01,347 [1] DEBUG Program - Server settings {
  "Port": null,
  "UseSSL": null,
  "StartAdminInterface": true,
  "ReadStaticMappings": false,
  "WatchStaticMappings": false,
  "WatchStaticMappingsInSubdirectories": false,
  "ProxyAndRecordSettings": null,
  "Urls": [
    "http://localhost:12345"
  ],
  "StartTimeout": 10000,
  "AllowPartialMapping": false,
  "AdminUsername": null,
  "AdminPassword": null,
  "AdminAzureADTenant": null,
  "AdminAzureADAudience": null,
  "RequestLogExpirationDuration": null,
  "MaxRequestLogCount": null,
  "AllowCSharpCodeMatcher": false,
  "AllowBodyForAllHttpMethods": false,
  "AllowOnlyDefinedHttpStatusCodeInResponse": false,
  "DisableJsonBodyParsing": false,
  "DisableRequestBodyDecompressing": null,
  "HandleRequestsSynchronously": false,
  "ThrowExceptionWhenMatcherFails": false,
  "CertificateSettings": null,
  "CustomCertificateDefined": false,
  "WebhookSettings": null
}
2021-10-26 18:17:01,474 [1] INFO  Program - Server using .NET Core 3.1
26-10-2021 16:17:01 Press Ctrl+C to shut down
26-10-2021 16:17:01 WireMock.Net server running : True

@devmariodiaz
Copy link
Author

This is happening when I use the Run button through Visual Studio 2019 for mac OS, I'm just trying to execute this one using a Windows machine.

@StefH
Copy link
Collaborator

StefH commented Oct 27, 2021

OK, please try a Windows machine.

In your case it seems that the whole start-profile is not recognized.

Pressing the ">" button on windows shows this:
image

@StefH
Copy link
Collaborator

StefH commented Nov 28, 2021

Closing...

@StefH StefH closed this as completed Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants