-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NuGet Package details to MsBuild project
- Loading branch information
Showing
3 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/CleanArchitecture.Blazored.MsBuild/build/CleanArchitecture.Blazored.MsBuild.props
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<!--defining properties interesting for my task--> | ||
<PropertyGroup> | ||
<!--The folder where the custom task will be present. It points to inside the NuGet package. --> | ||
<CustomTasksFolder>$(MSBuildThisFileDirectory)..\tasks\net8.0</CustomTasksFolder> | ||
<!--Reference to the assembly which contains the MSBuild Task--> | ||
<CustomTasksAssembly>$(CustomTasksFolder)\$(MSBuildThisFileName).dll</CustomTasksAssembly> | ||
</PropertyGroup> | ||
|
||
<!--Register our custom task--> | ||
<!-- <UsingTask TaskName="$(MSBuildThisFileName).$(MSBuildThisFileName)" AssemblyFile="$(CustomTasksAssembly)"/>--> | ||
<UsingTask TaskName="$(MSBuildThisFileName).ReplaceFileText" | ||
AssemblyFile="$(CustomTasksAssembly)"/> | ||
<UsingTask TaskName="$(MSBuildThisFileName).ReplaceFilename" | ||
AssemblyFile="$(CustomTasksAssembly)"/> | ||
<UsingTask TaskName="$(MSBuildThisFileName).GenerateTemplateMarkDownFile" | ||
AssemblyFile="$(CustomTasksAssembly)"/> | ||
<UsingTask TaskName="$(MSBuildThisFileName).GenerateTemplateReadMeFiles" | ||
AssemblyFile="$(CustomTasksAssembly)"/> | ||
</Project> |
3 changes: 3 additions & 0 deletions
3
src/CleanArchitecture.Blazored.MsBuild/build/CleanArchitecture.Blazored.MsBuild.targets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
</Project> |