https://github.com/isc30/custom-msbuild-task
Test Repository to test custom MsBuild tasks in .net5
https://github.com/isc30/custom-msbuild-task
Last synced: 7 months ago
JSON representation
Test Repository to test custom MsBuild tasks in .net5
- Host: GitHub
- URL: https://github.com/isc30/custom-msbuild-task
- Owner: isc30
- License: mit
- Created: 2020-11-21T13:54:30.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-25T18:27:19.000Z (over 5 years ago)
- Last Synced: 2025-03-11T12:52:19.187Z (over 1 year ago)
- Language: C#
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# custom-msbuild-task
Test Repository to test custom MsBuild tasks in .net5.
### Following the tutorial from:
https://docs.microsoft.com/en-us/visualstudio/msbuild/task-writing?view=vs-2019#tasks
### Error:
```
Severity Code Description Project File Line Suppression State
Error MSB4018 The "TestTask" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'System.Runtime, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at CustomTask.TestTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext()
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
TaskConsumer E:\projects\custom-msbuild-task\TaskConsumer\TaskConsumer.csproj 13
```