GithubHelp home page GithubHelp logo

metacreator's People

Contributors

gusarov avatar

Stargazers

 avatar

Watchers

 avatar  avatar

metacreator's Issues

redirrect meta expression exceptions to pseudocode file

What steps will reproduce the problem?
/*!
    using(var sr = new StreamReader("Types.txt"))
    {
        while(!sr.EndOfStream)
        {
            var typeName = sr.ReadLine();
            var type = Type.GetType(typeName);
*/
    public partial class /*= type.Name */Serializer : MySerializer</*= type.Name */>
    {

What is the expected output?
NullReferenceException in line
public partial class /*= type.Name

What do you see instead?
NullReferenceException in line *.meta.cs
Write( type.Name );



Original issue reported on code.google.com by [email protected] on 19 Jun 2011 at 9:01

Referencing local types from macros

class Program
{
    int Method()
    {
        return 5;
    }

    /*!
    WriteLine("public override string ToString(){"
    WriteLine("return " + Program.Method() + ".ToString()");
    WriteLine("}"
    */
}


That can be done with double passes compilation with intermediate assembly. 
Just like WPF building.

Original issue reported on code.google.com by [email protected] on 26 Jun 2010 at 11:59

Support For Linked Files

VS and msbuild allows to use 'link' instead of 'add existing' cs file to 
project.
Lets work with this accurately

Original issue reported on code.google.com by [email protected] on 26 Jun 2010 at 12:27

Mistake than in code /*!*/ without symbols between stars

What steps will reproduce the problem?
1. Typed /*!*/ in metacode, for example to make in code space for metacode, but 
doesn't fill it
2. Compile 
3. Get error MetaCode: End-of-file found, '*/' expected 

What version of the product are you using? On what operating system?
1.4

Original issue reported on code.google.com by [email protected] on 21 Mar 2011 at 11:14

Exception [Support for Net 4.0]

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?


Please provide any additional information below.

Error   2   MetaCode: An assembly with the same identity 'mscorlib, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' has already 
been imported. Try removing one of the duplicate 
references. C:\Users\Administrator\AppData\Local\Temp\MQuantity.meta.cs MtG.Doma
in


Original issue reported on code.google.com by dmitrinesteruk on 13 Sep 2010 at 7:22

pragma checksum

Research, do we really need that?
Why WPF generates this?
Does MS DSL Tools generates this?


Original issue reported on code.google.com by [email protected] on 26 Jun 2010 at 12:30

Rebuild of project can lead to unchanged generated file



  CreditMaster.Service.Dal -> M:\WS3\Credit Master\Main\Source\Service\bin\CreditMaster.Service.Dal.dll
------ Rebuild All started: Project: CreditMaster.Service.Contract, 
Configuration: Debug Any CPU ------
  * MetaCreator.targets: Clean
  * MetaCreator.targets: Execute MetaCreator (Targets v1.6)...
  * MetaCreator.dll: Data\IDataService.tt - 38 macros processed. Evaluating...
  * MetaCreator.dll: Data\IDataService.tt - 38 macros processed to => 
  [Not changed]  Data\IDataService.g.cs

Original issue reported on code.google.com by [email protected] on 14 Mar 2012 at 5:11

Dependancy Property Generation

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


Please use labels and text to provide additional information.


Original issue reported on code.google.com by [email protected] on 26 Jun 2010 at 12:48

Multiple Inheritance Simulation

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


Please use labels and text to provide additional information.


Original issue reported on code.google.com by [email protected] on 26 Jun 2010 at 12:47

Ability to optimize metageneration on build server

MetaCreator utilizes separate AppDomain for compilation of macroses. But is you 
run msbuild or devenv on a builder as a separate process, there are no reason 
in separate AppDomain, because this process will exit just after build, and 
releases all temporary assemblies.

consider to use special property in targets or conditional compilation symbol

Original issue reported on code.google.com by [email protected] on 26 Jun 2010 at 11:01

Implement Salvatore Previti's host compiler caching workaround

// <summary>
    /// Author: Salvatore Previti - 08-April-2009.
    /// 
    /// Visual studio host compiler keeps a cache of files during the MSBuild step, so they are not readed from disk.
    /// This is ok for performance and intellisense, right, but this introduces also some subtle bug!
    /// 
    /// See forum thread "Generated Code Not Building - VS Caching Problem?" at http://social.technet.microsoft.com/Forums/en-US/msbuild/thread/14bb304d-d8e6-4227-bc2b-e2e6d4f979be?ppud=4 for more informations.
    /// This task contains a simple but effective work around to this caching bug :)
    /// 
    /// How it works:
    /// 
    /// Visual studio keeps MSBuild Tasks dll loaded also between different compilations in the same appdomain where MSBuild is executed.
    /// Due to this fact, we can keep some states (static variables) between different compilations during the same development session.
    /// This class, infact, uses a static synclocked dictionary to keep states between different compilations.
    /// Each time static function UpdateFileUsageCount is called with the same prefix and with the same filename (case insensitive), the resulting value is incremented.
    /// 
    /// There is another "feature" (bug?) in visual studio cache mechanism... &lt;Compile Include="c:\test.cs"&gt and &lt;Compile Include="c:\test.cs "&gt
    /// are considered different files, so, they are cached as two different files (look the space character in "test.cs " in the second Compile tag).
    /// MSBuild and all filesystems, instead, treat both files as the same :)
    /// 
    /// So the solution! Each time we generate a file, we use a different number of spaces using our in-ram dictionary.
    /// The static function that does this is UpdateSpaces.
    /// During tests, a single space seems sufficient, but to be safe, I used MaxSpaces constant to use more than one space.
    /// 
    /// This system has some drawback, though:
    ///     1) You need to use this Task, so, you have to include a DLL and add some tags to your MSBuild project.
    ///     2) This should works for full pathed filenames.
    ///     3) Not garbage collector friendly - some objects (internal static dictionary and some Visual Studio cached files) will never be released and there is no way to release them.
    ///        This is a small amount of RAM, though, and should not be a problem during development.
    ///        During command-line MSBuild this problem can be ignored.
    /// </summary>

Original issue reported on code.google.com by [email protected] on 17 Oct 2012 at 5:53

Expand /*= ... */ expressions

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


Please use labels and text to provide additional information.


Original issue reported on code.google.com by [email protected] on 26 Jun 2010 at 12:35

String Interpolation

ConsoleWriteLine("Now is ${DateTime.Now}.")
=>
ConsoleWriteLine("Now is " + DateTime.Now + ".")

or e.g.

var someLicalVariable = DateTime.Now;
ConsoleWriteLine("Now is ${someLicalVariable}.")

see [http://boo.codehaus.org/String+Interpolation BooLang]

Original issue reported on code.google.com by [email protected] on 26 Jun 2010 at 12:46

Create msi installer

1. Install into %programfiles%
2. GAC
3. NGEN
4. Register safe MetaCreator.targets for VS in HKLM
5. Extend Custom.Before.Microsoft.Common.targets

Original issue reported on code.google.com by [email protected] on 25 Jun 2010 at 9:57

  • Blocked on: #4

Expand /*! ... */ expressions

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?


Please use labels and text to provide additional information.


Original issue reported on code.google.com by [email protected] on 26 Jun 2010 at 12:35

Scripting security

Research for security problems. Apply required restrictions to separate app 
domain.

Original issue reported on code.google.com by [email protected] on 26 Jun 2010 at 12:32

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.