Hello, I have created simple custom workflow analyzer rule to check if .gitignore is added or not. .dll is created in Visual Studio and net6.0 Target framework. It works fine in Windows project but fails in Legacy project with error shown in the screenshot. I am aware that I have to target both net6.0 and net461 framework by changing .csproject file but do not know what to change and how to change.
Hello @Nirav_Gajera!
It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.
First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.
You can check out some of our resources directly, see below:
-
Always search first. It is the best way to quickly find your answer. Check out the icon for that.
Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution. -
Topic that contains most common solutions with example project files can be found here.
-
Read our official documentation where you can find a lot of information and instructions about each of our products:
-
Watch the videos on our official YouTube channel for more visual tutorials.
Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.
Thank you for helping us build our UiPath Community!
Cheers from your friendly
Forum_Staff
Hello! For anyone wondering, here’s the solution: update the .csproj
file as shown below:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net461;net6.0</TargetFrameworks>
<LangVersion>10.0</LangVersion>
</PropertyGroup>
<!-- Only enable nullable feature for the supported frameworks -->
<PropertyGroup Condition=" '$(TargetFramework)' != 'net461' ">
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="UiPath.Activities.Api" Version="22.4.1" />
</ItemGroup>
</Project>
Once you build the project, you will find two folders under the bin/Release
directory.
For legacy projects:
- Copy the rule DLL file from the
net461
folder and paste it into thenet461/Rules
folder in the UiPath installation directory.
For Windows projects:
- Copy the rule DLL file from the
net6.0
folder and paste it into theRules
folder in the UiPath installation directory.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.