question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.cs.pp source code transform files in content folder not been added to projects and transformed

See original GitHub issue

Ive been using two packages both of which just have a source code file in their content folder which is transformed by putting the projects namespace into the file and adding it into the project.

the first package is liblog, it has the a file called liblog.cs.pp inside a subfolder of the content folder i.e. the following folder contains it

    packages\LibLog\content\App_Packages\LibLog.4.2  

this should be transformed and added into the project as app_packages\liblog.4.2\liblog.cs

the other package is liteguard.source which has the different framework folders under content, each folder containins guard.cs.pp this file should also be added to the project with the namespace changed and added as guard.cs at the root of the project

i know you dont do the running of ps1 files as part of adding a package but is it a possiblity of processing .cs.pp files ?

paket.dependencies has

    source https://www.nuget.org/api/v2

    nuget LibLog framework: net40
    nuget LiteGuard.Source framework: net40

paket.references for the project has

    LibLog
    LiteGuard.Source

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
forkicommented, Aug 2, 2016

It’s marked up-for-grabs…

0reactions
enricosadacommented, Jan 24, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Forked a project but what is .pp?
1 Answer 1 ... The C# source file is pre-processed (pp) for NuGet. See Configuration and source code transformation (NuGet). You specify a...
Read more >
Source and config file transformations for NuGet packages
A source code transformation applies one-way token replacement to files in the package's content or contentFiles folder ( content for ...
Read more >
NuGet ContentFiles Demystified - The NuGet Blog
pp transform files that are transformed and their output is included in the project for compilation; Other static files (text files, image files...
Read more >
6.1. Creating and Managing Projects — Code Composer ...
CCS supports two methods of adding source files and/or folders to projects. You can either add files or link files. When you add...
Read more >
Upgrading an existing .NET project files to the lean new ...
My approach is to first make a copy of the solution in Explorer, then replace the project you are upgrading with a brand...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found