UiPath의 커스텀 액티비티를위한 nupkg를 만드는 방법 (원문 수정)
5545 단어 VisualStudionugetRPA.NETUiPath
<?xml version="1.0"?>
<package >
<metadata>
<id>$id$</id>
<version>$version$</version>
<title>$title$</title>
<authors>m-kino</authors>
<owners>m-kino</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>$description$</description>
<releaseNotes>Summary of changes made in this release of the package.</releaseNotes>
<copyright>Copyright 2018</copyright>
</metadata>
<files>
<file src="bin\Release\*.dll" target="lib" />
</files>
</package>
이
<files>
<file src="bin\Release\*.dll" target="lib" />
</files>
는
DLL 파일을 lib 디렉토리 바로 아래에 배치하라는 지시입니다만, 이것을 쓰지 않으면 UiPath Studio에서는 참조되지 않는 개소(lib\net461 라고 하는 디렉토리 부하)에 DLL이 놓이는 것 같고, 그 대응을 위한 방해하지 않습니다 .
라는 이야기였습니다만, 아무래도 해결법이 발견된 듯 추기.
괜찮은 구성
개선 전에는 위와 같이
<files>
<file src="bin\Release\*.dll" target="lib" />
</files>
을 쓰고 있으므로, 이렇게 lib 바로 아래에도 DLL이 배치되게 되어 있습니다.

그런데, NuGet 사이트에 오르고 있는 nupkg를 힘들게 보고 있었던 곳,,,,

net45,,,? 이것은 DLL이 lib 바로 아래에 있지 않는데, UiPath Studio에서 움직이는 것이군요,,.
이게 아무래도 여러 대상 프레임워크 지원 에 설명된 호출 측의 .NET 버전에 따라 DLL을 전환하는 (?) 메커니즘 같은.
이 값을 제어하려면 Visual Studio에서 대상 프레임워크를 변경하면 됩니다.
대상 프레임워크 변경
Visual Studio 프로젝트를 열고 솔루션 탐색기를 마우스 오른쪽 단추로 클릭 >> 속성 >> 응용 프로그램을 선택하여 어셈블리 이름 등을 표시하는 화면을 엽니다.
그런 다음 대상 프레임 워크를 4.6.1 → 4.5로 변경합니다.

정말로 좋아? 들리지만 예를 선택하십시오.

변경되었습니다. .
에서 nuspec에
<files>
<file src="bin\Release\*.dll" target="lib" />
</files>
이것을 제거합시다.
어쩌면 이것으로 괜찮은 구성
이제 익숙한 nuget pack 명령으로 nupkg를 작성해 보았습니다.
Z:\git\Path\Utils> nuget pack Utils.csproj -Prop Configuration=Release

그것 같은 구성이 되었습니다! UiPath Studio에서 읽어 보았는데 문제 없을 것 같습니다.
미안해.
관련 링크
UiPath Studio에서 사용할 맞춤 활동을 만드는 방법 전 기사.
여러 대상 프레임워크 지원
NuGet Package Explorer 상기에서 나오는, nupkg의 내용을 참조·편집하는 툴입니다.
Reference
이 문제에 관하여(UiPath의 커스텀 액티비티를위한 nupkg를 만드는 방법 (원문 수정)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/masatomix/items/d62683a158da6d35f24d텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)