FoxPro and .NET Interop
wwDotNetBridge and AWSSDK preferring .NET Core
Gravatar is a globally recognized avatar based on your email address. wwDotNetBridge and AWSSDK preferring .NET Core
  Mike Helland
  All
  Jul 26, 2025 @ 09:10am

Hello!

I found a previous forum post here:

https://support.west-wind.com/Thread6350IIC1S.wwt

I am in a similar situation. Here's what I've been trying, maybe this is helpful to someone. Maybe someone has a better suggestion.

I created a C# Class Library project in VS Code, and it created a .NET Core dll. I couldn't get wwDotNetBridge to create an instance of it.

I read: https://west-wind.com/wconnect/weblog/ShowEntry.blog?id=57036

And used your sample project to create a new project, using "net472" as TargetFramework, and was able to create an instance of my object and call methods on it.

But now I get an error:

"Could not load file or assembly ‘System.Text.Json, Version=6.0.0.11’"

It seems that's because AWSSDK Amazon has other plans:

"In 2024, more .NET developers are finding themselves in a strange situation: suddenly, tried-and-tested .NET Framework 4.8 applications that interact with Amazon S3 start throwing cryptic build errors or runtime exceptions. The culprit? The AWS SDK for .NET has increasingly shifted toward support for .NET Core / .NET 6+, and full compatibility with .NET Framework is eroding." https://blog.dotnetframework.org/2025/07/03/%f0%9f%9a%ab-why-aws-sdk-for-s3-no-longer-works-smoothly-with-net-framework-4-8-and-how-to-fix-it/

I then tried changing my project's TargetFramework to netstandard2.0 to see if that would help. The simple methods work (return "hi";) but now it can't find AWSSDK.SimpleEmail.

So, I played around a bit, and this actually kind of seems to work.

do wwdotnetbridge
loBridge = getwwdotnetbridge()
?loBridge.loadAssembly("C:\Users\MikeHelland\.nuget\packages\awssdk.core\4.0.0.18\lib\netstandard2.0\AWSSDK.Core.dll")
?loBridge.loadAssembly("C:\Users\MikeHelland\.nuget\packages\awssdk.simpleemail\4.0.0.15\lib\netstandard2.0\AWSSDK.SimpleEmail.dll")
?loBridge.loadAssembly("C:\acedev\aw-aws-ses\bin\aw-aws-ses.dll")
loObj = loBridge.createInstance("Aceware.AwsSes")
?loObj.hi()
?loObj.sendEmail()

I'm able to create the AWS SES client and request objects. I'm still getting an error on SendEmailAsync (and SendEmail is somehow insivible to .NET Core and .NET Standard projects, unlike with a .NET Framework Project), but that's probably an AWS config/permission thing on my side. I hope.

Anyways, that's where I'm at. I thought I'd post this in case (like in the linked forum post) anyone else was having issues, and if anyone else had suggestions.

Also, any pointers for .NET Core dll's in wwDotNetBridge? In case I have to go that route.

© 1996-2025