DX VBOs using C# 6 with older BP versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
26-10-22 06:30 PM
When I look in the object's Code Stages to see what is going on, I find it is nearly always due to string interpolation - that C# 6 feature where you write a string literal prefixed with a dollar symbol and then enclose variable names in curly brackets inside the string. I assume using any other C# 6 features would cause the same thing, but it's usually string interpolation.
My question is: Is there any way to make my older version of BP use the newer C# features?
I'm just setting out on a project to upgrade my Blue Prism infrastructure, but wondered if there was a workaround I could use for the next two or three months (other than rewriting all the strings in the VBO!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
26-10-22 09:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-10-22 12:19 AM
Beginning with Blue Prism v6.0, .NET Framework v4.7 or higher was a requirement. String interpolation was initially added with C# 6 which saw support start with .NET Framework v4.6 I believe. There have been enhancements to string interpolation that were introduced in C# 10 and 11 though, so it may be one of these enhancements that's tripping you up.
What specific VBOs are you having trouble with?
Cheers,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-10-22 09:14 AM
I was assuming that it was due to the Rosslyn compiler not being the targetted version in the BP build.
The specific VBOs I'm looking at are the new MS Graph API for Outlook (I did notice that it says it was only tested with BP 6.7 and I'm on 6.6, but thought it was worth a shot).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-10-22 02:04 PM
The about page shows the expected .Net version. It does not show the actual one.
This confused me too until it was clarified to me by BP support.
In order to find the actually installed .Net versions you have to follow this description:
Determine which .NET Framework versions are installed - .NET Framework | Microsoft Learn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-10-22 02:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-10-22 02:26 PM
https://digitalexchange.blueprism.com/dx/entry/3439/solution/microsoft-office-365---outlook
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-10-22 02:35 PM
We’re in the process of adding a new action to that VBO. While we’re at it, we’ll change the string interpolation to a legacy pattern. That will address your issue.
Cheers,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-10-22 06:25 PM
Version 1.1 of the VBO has been posted to the DX. We've changed the string interpolation to a more legacy string concatenation pattern. You can find the updated VBO here.
Cheers,
Eric
