Code Monkey home page Code Monkey logo

Comments (5)

3F avatar 3F commented on May 17, 2024

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

changelog

from vssolutionbuildevent.

3F avatar 3F commented on May 17, 2024

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.

3F avatar 3F commented on May 17, 2024

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.

3F avatar 3F commented on May 17, 2024

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.

3F avatar 3F commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.