Skip to content

Commit

Permalink
Added ContentPathGenerator instructions for VS Code and Rider (#699)
Browse files Browse the repository at this point in the history
* Added ContentPathGenerator instructions for VS Code and Rider

* use space instead of tab
  • Loading branch information
Tobi-Mob authored Oct 22, 2021
1 parent 6ff901c commit 4d0bffd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion FAQs/ContentManagement.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,15 @@ The big advantage to using it is that you will never have a reference to content

- copy the ContentPathGenerator.tt file into the root of your project (you could place it elsewhere and then modify the `sourceFolder` variable in the file. For example, if using only precompiled XNB files in an FNA project you would set `sourceFolder = "Content/"`)
- in the properties pane for the file set the "Custom Tool" to "TextTemplatingFileGenerator"
- right click the file and choose Tools -> Process T4 Template to generate the Content class
- For Visual Studio:
- right click the file and choose "Tools" -> "Process T4 Template" to generate the Content class
- For Visual Studio Code
- Install the mono [dotnet-t4](https://github.com/mono/t4) tool.
- can be globally installed with: ```dotnet tool install -g dotnet-t4```
- Invoke dotnet-t4 via command line: ```t4 -o ContentPathGenerator.cs ContentPathGenerator.tt```
- For JetBrains Rider:
- right click the file and choose "Run Template"



## Async Loading
Expand Down

0 comments on commit 4d0bffd

Please sign in to comment.