Comments (7)
This is the only reason I even "need" to use slowcheetah -- to preview, because nothing else will do this. I am using octopus deploy / nuget to do the actual build transform step. I just need something that lets me preview the darn files. The old version works for this and I will continue to use that until something else comes along: https://github.com/sayedihashimi/slow-cheetah/releases/tag/v2.5.48
from slow-cheetah.
Related to https://slowcheetah.uservoice.com/forums/185106-general/suggestions/4227888-allow-transforms-based-on-solution-configuration-s and https://slowcheetah.uservoice.com/forums/185106-general/suggestions/9294063-allow-config-transforms-that-are-not-tied-to-build
from slow-cheetah.
SlowCheetah needs to determine if these files are actually transform files or if they are just part of the project. As I stated in #46, generating transforms for configurations that are not part of the project would not work since on build, the configuration would just default to an existing one for that project. As for specifically previewing transforms that you generated for other processes, it seems like a good idea.
One possible way to do this is to look ate the parent of the file and see if the name of the files match. Unfortunately, I can't think of a way to know if file A is a transformation file corresponding to file B unless A is nested under B or if A has a name corresponding to a configuration of the project.
from slow-cheetah.
unless A is nested under B
Exactly, our projects are setup just like that.
Do you think using SlowCheetah as a 'preview' tool is a good fit? Or should I look into creating an extension limited to preview only. This has the added benefit of not needing a nuget package import.
from slow-cheetah.
I think SlowCheetah is a complete tool, especially since it now includes JSON transformations. If you want to write your own preview tool, that could be fine although it might have limited functionality.
from slow-cheetah.
I think this could be a feature to have metadata that allows for custom transform names that map back to a configuration.
Example:
<None Include="Web.Acceptance.config">
<DependentUpon>web.config</DependentUpon>
<IsTransformFile>True</IsTransformFile>
<TransformConfiguration>Debug</TransformConfiguration>
</None>
from slow-cheetah.
As far as "generating transforms for configurations that are not part of the project would not work since on build, the configuration would just default to an existing one for that project": anything that happens "on build" doesn't affect previewing transforms. I don't want the build to transform configs, but I do want to be able to preview the transforms. I've started on a fork that restores that functionality.
from slow-cheetah.
Related Issues (20)
- SlowCheetah does not transform when project is net48 Microsoft.NET.Sdk.Worker HOT 1
- JSON file add transform creates UTF-8-BOM encoding files while source file is UTF-8. This UTF-8-BOM is not supported by most decoders. HOT 1
- Newtonsoft.Json vulnerability to DoS attacks in versions before 13.0.1 HOT 5
- Xml and config transformation does not work on UWP HOT 4
- This repo is missing important files
- Use INuGetProjectService instead of IVsPackageInstallerServices
- SlowCheetah no longer working in VS2019 HOT 1
- Transformation Damages Values with ">" in Them HOT 2
- Problem with readonly app.config files
- ClickOnce not coping data files after Transform
- The transformation is correctly applied and the resulting config file in the output looks as expected. But the configuration loaded in memory is as if taken from the original config file. project is .net framework 4.7.2 self-hosted winform app using appsettings.config file
- How to json arrays of objects or attributes therein HOT 4
- VS2022 Error while loading solution HOT 16
- Transform Not Working In Template Studio Created WinUI 3 Projet
- Old NuGet project page still accessible and getting downloads HOT 1
- TransformXml task could not be loaded from the assembly HOT 1
- SlowCheetah 'File not found' issue when publishing to the file system using msbuild HOT 1
- Per-user transformations HOT 1
- App.config Transform not working with VS2022 HOT 3
- Transform fails when project is targetting multiple frameworks HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slow-cheetah.