Comments (5)
Original comment by Denis Kuzmin (Bitbucket: 3F, GitHub: 3F):
available with v0.10 - see on gallery page or click here
here's the changelog entry:
CHANGED: Added handling of special symbols in MSBuild core
from vssolutionbuildevent.
Original comment by Denis Kuzmin (Bitbucket: 3F, GitHub: 3F):
implemented with 4e6b15e and should be included in v0.10
now, if you have a multiline value in your variable projectRev, for example:
#!java
#[var cs = Version is a %ver% !]
#[var projectRev = v1.2
debug
rev321]
you should strip this with Replace on any compatible sequence, e.g.
#!java
#[var projectRev = $(projectRev.Replace("\r\n", " :: "))]
#[var cs = $(cs.Replace("%ver%", "#[var projectRev]"))]
or as variant:
#!java
#[var cs = $(cs.Replace("%ver%", $(projectRev.Replace("\r\n", " :: "))))]
and similar...
note:
- use the escaping \r \n if need this
- use the \x00 - \xFF for other char by code
as result in variable cs we have:
#!java
Version is a v1.2 :: debug :: rev321 !
from vssolutionbuildevent.
Original comment by Denis Kuzmin (Bitbucket: 3F, GitHub: 3F):
ok, I checked variant for MSBuild
#!java
#[var cs = line1
line2]
#[var cs = $(cs.Replace("\r\n", ""))]
or with different combination CR/LF
#!java
#[var cs = $(cs.Replace("\r", "").Replace("\n", ""))]
#!java
result: line1line2
so, we can use the Replace() function of the MSBuild core for any result from SBE-Scripts core
but, v0.9 is not contains handler of symbols \r\n for the MSBuild properties
this should be implemented is coming soon, and I think to include this in planned v0.10
you can watch this ticket about progress of this implementation..
Please remeber: bitbucket.org allows anonymous issue creation, but for new comments you should be authorized for this tracker
from vssolutionbuildevent.
Original comment by Denis Kuzmin (Bitbucket: 3F, GitHub: 3F):
if it's you - Issue #26 well...
#!java
$(cs.Replace(...
this for MSBuild core, so yes the newline symbols is not allowed and will be fail
I think need an additional component for work with special symbols... need to think
stay in touch!
from vssolutionbuildevent.
Original comment by Denis Kuzmin (Bitbucket: 3F, GitHub: 3F):
Thanks for report,
I will check this later
try also RC of planned version: v0.10_RC1_[db60b3e].vsix
from vssolutionbuildevent.
Related Issues (20)
- Interrupt a build with pre-build event script HOT 3
- 7z & amd64\msbuild.exe: Can not load 7-zip library or internal COM error HOT 1
- Update support of VS2017 HOT 4
- ProjectGuid & SDK-based projects HOT 1
- Isolated environment. Possible incorrect projects for MSBuild Properties ~ $(TargetFrameworkVersion:Metadata) HOT 2
- Pre-Build error: An equivalent project (a project with the same global properties and tools version) is already present in the project collection HOT 6
- 'Object reference not set to an instance of an object.' HOT 5
- Visual Studio 2019 supprt HOT 6
- .vssbe configuration via HJSON
- Our script engines into the new independent projects
- installer fails if Atmel studio is installed on computer HOT 4
- IsolatedEnv and empty SolutionConfigurationPlatforms: "escapedValue" cannot be null
- NuGet integration - Docu HOT 6
- 7z: relative paths like ..\Dir for input files lead to wrong filename in zip file HOT 2
- MSBuild Properties not changing according to solution configuration HOT 1
- Can't use MSBuild in Targets Mode HOT 2
- Visual Studion 2022 support HOT 7
- Visual Studio Setup Project error HOT 2
- Possible to set settings default to all project? HOT 4
- Extension "Progress Telerik UI for WPF Extension" causes MSBuild properties to be *undefined* HOT 3
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 vssolutionbuildevent.