diff --git a/CapnpC.CSharp.MsBuild.Generation/CsFileGeneratorResult.cs b/CapnpC.CSharp.MsBuild.Generation/CsFileGeneratorResult.cs deleted file mode 100644 index 75961ac..0000000 --- a/CapnpC.CSharp.MsBuild.Generation/CsFileGeneratorResult.cs +++ /dev/null @@ -1,51 +0,0 @@ -using CapnpC.CSharp.Generator; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace CapnpC.CSharp.MsBuild.Generation -{ - public class CsFileGeneratorResult - { - public CsFileGeneratorResult(FileGenerationResult generatorResult, string fileName, IReadOnlyList messages) - { - if (generatorResult == null) - { - throw new ArgumentNullException(nameof(generatorResult)); - } - - Filename = fileName ?? throw new ArgumentNullException(nameof(fileName)); - - Error = generatorResult.Exception?.Message; - GeneratedCode = generatorResult.GeneratedContent; - Messages = messages; - } - - public CsFileGeneratorResult(string error) - { - Error = error; - } - - public CsFileGeneratorResult(string error, IReadOnlyList messages) - { - Error = error; - Messages = messages; - } - - /// - /// The error, if any. - /// - public string Error { get; } - - /// - /// The generated code. - /// - public string GeneratedCode { get; } - - public IReadOnlyList Messages { get; } - - public bool Success => Error == null; - - public string Filename { get; } - } -} \ No newline at end of file diff --git a/Capnpc.Csharp.MsBuild.Generation/AssemblyAttributes.cs b/Capnpc.Csharp.MsBuild.Generation/AssemblyAttributes.cs deleted file mode 100644 index ff364dc..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/AssemblyAttributes.cs +++ /dev/null @@ -1,4 +0,0 @@ - -using System.Runtime.CompilerServices; -using System.Security; - diff --git a/Capnpc.Csharp.MsBuild.Generation/CapnpCodeBehindGenerator.cs b/Capnpc.Csharp.MsBuild.Generation/CapnpCodeBehindGenerator.cs deleted file mode 100644 index 6bc73be..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/CapnpCodeBehindGenerator.cs +++ /dev/null @@ -1,99 +0,0 @@ -using CapnpC.CSharp.Generator; -using System; -using System.Collections.Generic; -using System.IO; - -namespace CapnpC.CSharp.MsBuild.Generation -{ - public class CapnpCodeBehindGenerator : IDisposable - { - - public void InitializeProject(string projectPath) - { - } - - - public CsFileGeneratorResult GenerateCodeBehindFile(CapnpGenJob job) - { - string capnpFile = job.CapnpPath; - - // Works around a weird capnp.exe behavior: When the input file is empty, it will spit out an exception dump - // instead of a parse error. But the parse error is nice because it contains a generated ID. We want the parse error! - // Workaround: Generate a temporary file that contains a single line break (such that it is not empty...) - try - { - if (File.Exists(capnpFile) && new FileInfo(capnpFile).Length == 0) - { - string tempFile = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName() + ".capnp"); - - File.WriteAllText(tempFile, Environment.NewLine); - try - { - var jobCopy = new CapnpGenJob() - { - CapnpPath = tempFile, - WorkingDirectory = job.WorkingDirectory - }; - - jobCopy.AdditionalArguments.AddRange(job.AdditionalArguments); - - return GenerateCodeBehindFile(jobCopy); - } - finally - { - File.Delete(tempFile); - } - } - } - catch - { - } - - var args = new List(); - args.AddRange(job.AdditionalArguments); - args.Add(capnpFile); - - var result = CapnpCompilation.InvokeCapnpAndGenerate(args, job.WorkingDirectory); - - if (result.IsSuccess) - { - if (result.GeneratedFiles.Count == 1) - { - return new CsFileGeneratorResult( - result.GeneratedFiles[0], - capnpFile + ".cs", - result.Messages); - } - else - { - return new CsFileGeneratorResult( - "Code generation produced more than one file. This is not supported.", - result.Messages); - } - } - else - { - switch (result.ErrorCategory) - { - case CapnpProcessFailure.NotFound: - return new CsFileGeneratorResult("Unable to find capnp.exe - please install capnproto on your system first."); - - case CapnpProcessFailure.BadInput: - return new CsFileGeneratorResult("Invalid schema", result.Messages); - - case CapnpProcessFailure.BadOutput: - return new CsFileGeneratorResult( - "Internal error: capnp.exe produced a binary code generation request which was not understood by the backend", - result.Messages); - - default: - throw new NotSupportedException("Invalid error category"); - } - } - } - - public void Dispose() - { - } - } -} \ No newline at end of file diff --git a/Capnpc.Csharp.MsBuild.Generation/CapnpFileCodeBehindGenerator.cs b/Capnpc.Csharp.MsBuild.Generation/CapnpFileCodeBehindGenerator.cs deleted file mode 100644 index 26af336..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/CapnpFileCodeBehindGenerator.cs +++ /dev/null @@ -1,88 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; - -namespace CapnpC.CSharp.MsBuild.Generation -{ - public class CapnpFileCodeBehindGenerator : ICapnpcCsharpGenerator - { - public CapnpFileCodeBehindGenerator(TaskLoggingHelper log) - { - Log = log ?? throw new ArgumentNullException(nameof(log)); - } - - public TaskLoggingHelper Log { get; } - - public IEnumerable GenerateFilesForProject( - string projectPath, - List capnpFiles, - string projectFolder) - { - using (var capnpCodeBehindGenerator = new CapnpCodeBehindGenerator()) - { - capnpCodeBehindGenerator.InitializeProject(projectPath); - - var codeBehindWriter = new CodeBehindWriter(null); - - if (capnpFiles == null) - { - yield break; - } - - foreach (var genJob in capnpFiles) - { - Log.LogMessage(MessageImportance.Normal, "Generate {0}, working dir = {1}, options = {2}", - genJob.CapnpPath, - genJob.WorkingDirectory, - string.Join(" ", genJob.AdditionalArguments)); - - var generatorResult = capnpCodeBehindGenerator.GenerateCodeBehindFile(genJob); - - if (!generatorResult.Success) - { - if (!string.IsNullOrEmpty(generatorResult.Error)) - { - Log.LogError("{0}", generatorResult.Error); - } - - if (generatorResult.Messages != null) - { - foreach (var message in generatorResult.Messages) - { - if (message.IsParseSuccess) - { - Log.LogError( - subcategory: null, - errorCode: null, - helpKeyword: null, - file: genJob.CapnpPath, - lineNumber: message.Line, - columnNumber: message.Column, - endLineNumber: message.Line, - endColumnNumber: message.EndColumn == 0 ? message.Column : message.EndColumn, - "{0}", - message.MessageText); - } - else - { - Log.LogError("{0}", message.FullMessage); - } - } - } - - continue; - } - - var resultedFile = codeBehindWriter.WriteCodeBehindFile(generatorResult.Filename, generatorResult); - - yield return FileSystemHelper.GetRelativePath(resultedFile, projectFolder); - } - } - - } - } -} diff --git a/Capnpc.Csharp.MsBuild.Generation/Capnpc.Csharp.MsBuild.Generation.csproj b/Capnpc.Csharp.MsBuild.Generation/Capnpc.Csharp.MsBuild.Generation.csproj deleted file mode 100644 index c45d18d..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/Capnpc.Csharp.MsBuild.Generation.csproj +++ /dev/null @@ -1,114 +0,0 @@ - - - net471;netcoreapp2.1 - false - - true - true - - true - true - $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb - 1.0.0.0 - 1.0.0.0 - 1.0-local$([System.DateTime]::UtcNow.ToString(yyMMddHHmm)) - - $(MSBuildThisFileDirectory)CapnpC.CSharp.MsBuild.Generation.nuspec - version=$(Version);configuration=$(Configuration) - true - ..\bin\$(Configuration) - Debug;Release - - - - - - - - - - - - - - - All - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - true - - - - - - Microsoft.Build - - - Microsoft.Build.Framework - - - Microsoft.Build.Utilities.Core - - - - - - - Always - - - Always - - - Always - - - Always - - - Always - - - MSBuild:Compile - Always - - - MSBuild:Compile - Always - - - - - - - - \ No newline at end of file diff --git a/Capnpc.Csharp.MsBuild.Generation/Capnpc.Csharp.MsBuild.Generation.nuspec b/Capnpc.Csharp.MsBuild.Generation/Capnpc.Csharp.MsBuild.Generation.nuspec deleted file mode 100644 index e048bb9..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/Capnpc.Csharp.MsBuild.Generation.nuspec +++ /dev/null @@ -1,31 +0,0 @@ - - - - CapnpC.CSharp.MsBuild.Generation - $version$ - CapnpC.CSharp.MsBuild.Generation - Christian Köllner and contributors - Christian Köllner - Package to enable the .capnp -> .cs file generation during build time - Package to enable the .capnp -> .cs file generation during build time - en-US - https://github.com/c80k/capnproto-dotnetcore - false - MIT - capnproto csharp msbuild - Christian Köllner and contributors - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Capnpc.Csharp.MsBuild.Generation/CodeBehindWriter.cs b/Capnpc.Csharp.MsBuild.Generation/CodeBehindWriter.cs deleted file mode 100644 index 3ff276b..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/CodeBehindWriter.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System; -using System.IO; -using Microsoft.Build.Utilities; - -namespace CapnpC.CSharp.MsBuild.Generation -{ - public class CodeBehindWriter - { - public CodeBehindWriter(TaskLoggingHelper log) - { - Log = log; - } - - public TaskLoggingHelper Log { get; } - - public string WriteCodeBehindFile(string outputPath, CsFileGeneratorResult testFileGeneratorResult) - { - string directoryPath = Path.GetDirectoryName(outputPath) ?? throw new InvalidOperationException(); - Log?.LogWithNameTag(Log.LogMessage, directoryPath); - - Log?.LogWithNameTag(Log.LogMessage, $"Writing data to {outputPath}; path = {directoryPath}; generatedFilename = {testFileGeneratorResult.Filename}"); - - if (File.Exists(outputPath)) - { - if (!FileSystemHelper.FileCompareContent(outputPath, testFileGeneratorResult.GeneratedCode)) - { - File.WriteAllText(outputPath, testFileGeneratorResult.GeneratedCode); - } - } - else - { - File.WriteAllText(outputPath, testFileGeneratorResult.GeneratedCode); - } - - return outputPath; - } - } -} diff --git a/Capnpc.Csharp.MsBuild.Generation/FileSystemHelper.cs b/Capnpc.Csharp.MsBuild.Generation/FileSystemHelper.cs deleted file mode 100644 index d538531..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/FileSystemHelper.cs +++ /dev/null @@ -1,112 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Text; - -namespace CapnpC.CSharp.MsBuild.Generation -{ - public static class FileSystemHelper - { - public static void CopyFileToFolder(string filePath, string folderName) - { - File.Copy(filePath, Path.Combine(folderName, Path.GetFileName(filePath))); - } - - public static string GetRelativePath(string path, string basePath) - { - path = Path.GetFullPath(path); - basePath = Path.GetFullPath(basePath); - if (String.Equals(path, basePath, StringComparison.OrdinalIgnoreCase)) - return "."; // the "this folder" - - if (path.StartsWith(basePath + Path.DirectorySeparatorChar, StringComparison.OrdinalIgnoreCase)) - return path.Substring(basePath.Length + 1); - - //handle different drives - string pathRoot = Path.GetPathRoot(path); - if (!String.Equals(pathRoot, Path.GetPathRoot(basePath), StringComparison.OrdinalIgnoreCase)) - return path; - - //handle ".." pathes - string[] pathParts = path.Substring(pathRoot.Length).Split(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); - string[] basePathParts = basePath.Substring(pathRoot.Length).Split(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar); - - int commonFolderCount = 0; - while (commonFolderCount < pathParts.Length && commonFolderCount < basePathParts.Length && - String.Equals(pathParts[commonFolderCount], basePathParts[commonFolderCount], StringComparison.OrdinalIgnoreCase)) - commonFolderCount++; - - StringBuilder result = new StringBuilder(); - for (int i = 0; i < basePathParts.Length - commonFolderCount; i++) - { - result.Append(".."); - result.Append(Path.DirectorySeparatorChar); - } - - if (pathParts.Length - commonFolderCount == 0) - return result.ToString().TrimEnd(Path.DirectorySeparatorChar); - - result.Append(String.Join(Path.DirectorySeparatorChar.ToString(), pathParts, commonFolderCount, pathParts.Length - commonFolderCount)); - return result.ToString(); - } - - // This method accepts two strings the represent two files to - // compare. A return value of true indicates that the contents of the files - // are the same. A return value of any other value indicates that the - // files are not the same. - public static bool FileCompare(string filePath1, string filePath2) - { - int file1byte; - int file2byte; - - // Determine if the same file was referenced two times. - if (String.Equals(filePath1, filePath2, StringComparison.CurrentCultureIgnoreCase)) - { - // Return true to indicate that the files are the same. - return true; - } - - // Open the two files. - using (FileStream fs1 = new FileStream(filePath1, FileMode.Open, FileAccess.Read)) - { - using (FileStream fs2 = new FileStream(filePath2, FileMode.Open, FileAccess.Read)) - { - // Check the file sizes. If they are not the same, the files - // are not the same. - if (fs1.Length != fs2.Length) - { - // Return false to indicate files are different - return false; - } - - // Read and compare a byte from each file until either a - // non-matching set of bytes is found or until the end of - // file1 is reached. - do - { - // Read one byte from each file. - file1byte = fs1.ReadByte(); - file2byte = fs2.ReadByte(); - } while ((file1byte == file2byte) && (file1byte != -1)); - } - } - // Return the success of the comparison. "file1byte" is - // equal to "file2byte" at this point only if the files are - // the same. - return ((file1byte - file2byte) == 0); - } - - // This method accepts two strings the represent two files to - // compare. A return value of true indicates that the contents of the files - // are the same. A return value of any other value indicates that the - // files are not the same. - public static bool FileCompareContent(string filePath1, string fileContent) - { - var currentFileContent = File.ReadAllText(filePath1); - - return string.CompareOrdinal(currentFileContent, fileContent) == 0; - - } - } -} diff --git a/Capnpc.Csharp.MsBuild.Generation/GenerateCapnpFileCodeBehindTask.cs b/Capnpc.Csharp.MsBuild.Generation/GenerateCapnpFileCodeBehindTask.cs deleted file mode 100644 index 459af9b..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/GenerateCapnpFileCodeBehindTask.cs +++ /dev/null @@ -1,136 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; -using System.Resources; -using Microsoft.Build.Framework; -using Microsoft.Build.Utilities; - -namespace CapnpC.CSharp.MsBuild.Generation -{ - public class GenerateCapnpFileCodeBehindTask : Task - { - public GenerateCapnpFileCodeBehindTask() - { - CodeBehindGenerator = new CapnpFileCodeBehindGenerator(Log); - } - - public ICapnpcCsharpGenerator CodeBehindGenerator { get; set; } - - [Required] - public string ProjectPath { get; set; } - - public string ProjectFolder => Path.GetDirectoryName(ProjectPath); - - public ITaskItem[] CapnpFiles { get; set; } - - [Output] - public ITaskItem[] GeneratedFiles { get; private set; } - - static CapnpGenJob ToGenJob(ITaskItem item) - { - var job = new CapnpGenJob() - { - CapnpPath = item.GetMetadata("FullPath"), - WorkingDirectory = item.GetMetadata("WorkingDirectory") - }; - - string importPaths = item.GetMetadata("ImportPaths"); - - if (!string.IsNullOrWhiteSpace(importPaths)) - { - job.AdditionalArguments.AddRange(importPaths.Split(new char[] { ';' }, - StringSplitOptions.RemoveEmptyEntries).Select(p => $"-I\"{p.TrimEnd('\\')}\"")); - } - - string sourcePrefix = item.GetMetadata("SourcePrefix"); - - if (!string.IsNullOrWhiteSpace(sourcePrefix)) - { - job.AdditionalArguments.Add(sourcePrefix); - } - - - string verbose = item.GetMetadata("Verbose"); - - if ("true".Equals(verbose, StringComparison.OrdinalIgnoreCase)) - { - job.AdditionalArguments.Add("--verbose"); - } - - return job; - } - - public override bool Execute() - { - try - { - try - { - var currentProcess = Process.GetCurrentProcess(); - - Log.LogWithNameTag(Log.LogMessage, $"process: {currentProcess.ProcessName}, pid: {currentProcess.Id}, CD: {Environment.CurrentDirectory}"); - - foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies()) - { - Log.LogWithNameTag(Log.LogMessage, " " + assembly.FullName); - } - } - catch (Exception e) - { - Log.LogWithNameTag(Log.LogMessage, $"Error when dumping process info: {e}"); - } - - AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; - - var generator = CodeBehindGenerator ?? new CapnpFileCodeBehindGenerator(Log); - - Log.LogWithNameTag(Log.LogMessage, "Starting GenerateCapnpFileCodeBehind"); - - var capnpFiles = CapnpFiles?.Select(ToGenJob).ToList() ?? new List(); - - var generatedFiles = generator.GenerateFilesForProject( - ProjectPath, - capnpFiles, - ProjectFolder); - - GeneratedFiles = generatedFiles.Select(file => new TaskItem { ItemSpec = file }).ToArray(); - - return !Log.HasLoggedErrors; - } - catch (Exception e) - { - if (e.InnerException != null) - { - if (e.InnerException is FileLoadException fle) - { - Log?.LogWithNameTag(Log.LogError, $"FileLoadException Filename: {fle.FileName}"); - Log?.LogWithNameTag(Log.LogError, $"FileLoadException FusionLog: {fle.FusionLog}"); - Log?.LogWithNameTag(Log.LogError, $"FileLoadException Message: {fle.Message}"); - } - - Log?.LogWithNameTag(Log.LogError, e.InnerException.ToString()); - } - - Log?.LogWithNameTag(Log.LogError, e.ToString()); - return false; - } - finally - { - AppDomain.CurrentDomain.AssemblyResolve -= CurrentDomain_AssemblyResolve; - } - } - - private System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args) - { - Log.LogWithNameTag(Log.LogMessage, args.Name); - - - return null; - } - - } - - -} \ No newline at end of file diff --git a/Capnpc.Csharp.MsBuild.Generation/Helper/LogExtensions.cs b/Capnpc.Csharp.MsBuild.Generation/Helper/LogExtensions.cs deleted file mode 100644 index 3203bea..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/Helper/LogExtensions.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Microsoft.Build.Utilities; - -namespace CapnpC.CSharp.MsBuild.Generation -{ - public static class LogExtensions - { - public static void LogWithNameTag( - this TaskLoggingHelper loggingHelper, - Action loggingMethod, - string message, - params object[] messageArgs) - { - string fullMessage = $"[Cap'n Proto] {message}"; - loggingMethod?.Invoke(fullMessage, messageArgs); - } - } -} diff --git a/Capnpc.Csharp.MsBuild.Generation/ICapnpCsharpGenerator.cs b/Capnpc.Csharp.MsBuild.Generation/ICapnpCsharpGenerator.cs deleted file mode 100644 index 965b0ce..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/ICapnpCsharpGenerator.cs +++ /dev/null @@ -1,9 +0,0 @@ -using System.Collections.Generic; - -namespace CapnpC.CSharp.MsBuild.Generation -{ - public interface ICapnpcCsharpGenerator - { - IEnumerable GenerateFilesForProject(string projectPath, List jobs, string projectFolder); - } -} \ No newline at end of file diff --git a/Capnpc.Csharp.MsBuild.Generation/build/CPS/Buildsystem/CpsExtension.DesignTime.targets b/Capnpc.Csharp.MsBuild.Generation/build/CPS/Buildsystem/CpsExtension.DesignTime.targets deleted file mode 100644 index 4f6883c..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/build/CPS/Buildsystem/CpsExtension.DesignTime.targets +++ /dev/null @@ -1,15 +0,0 @@ - - - - - $(MSBuildThisFileDirectory)Rules\ - - - - - - - File;BrowseObject - - - \ No newline at end of file diff --git a/Capnpc.Csharp.MsBuild.Generation/build/CPS/Buildsystem/Rules/CapnpFileType.xaml b/Capnpc.Csharp.MsBuild.Generation/build/CPS/Buildsystem/Rules/CapnpFileType.xaml deleted file mode 100644 index c938967..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/build/CPS/Buildsystem/Rules/CapnpFileType.xaml +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Capnpc.Csharp.MsBuild.Generation/build/CPS/Buildsystem/Rules/ProjectItemsSchema.xaml b/Capnpc.Csharp.MsBuild.Generation/build/CPS/Buildsystem/Rules/ProjectItemsSchema.xaml deleted file mode 100644 index 1cf7ddb..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/build/CPS/Buildsystem/Rules/ProjectItemsSchema.xaml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Capnpc.Csharp.MsBuild.Generation/build/Capnpc.Csharp.MsBuild.Generation.props b/Capnpc.Csharp.MsBuild.Generation/build/Capnpc.Csharp.MsBuild.Generation.props deleted file mode 100644 index 2d2682c..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/build/Capnpc.Csharp.MsBuild.Generation.props +++ /dev/null @@ -1,78 +0,0 @@ - - - - $(MSBuildThisFileDirectory)CPS\Buildsystem\CpsExtension.DesignTime.targets - - - - - - - false - $(CapnpcCsharp_UseHostCompilerIfAvailable) - - - - - false - false - - false - true - false - - <_CapnpcCsharpPropsImported Condition="'$(_CapnpcCsharpPropsImported)'==''">true - - - - - - - false - - - true - $(CapnpcCsharp_EnableDefaultCompileItems) - - $(DefaultItemExcludes);**/*.capnp - - - - - %(RelativeDir)%(Filename).capnp.cs - $(UsingMicrosoftNETSdk) - $(ProjectDir) - - - - - - - - - - - - - - - <_CapnpcCsharp_TaskFolder Condition=" '$(MSBuildRuntimeType)' == 'Core' And '$(_CapnpcCsharp_TaskFolder)' == ''">netcoreapp2.1 - <_CapnpcCsharp_TaskFolder Condition=" '$(MSBuildRuntimeType)' != 'Core' And '$(_CapnpcCsharp_TaskFolder)' == ''">net471 - <_CapnpcCsharp_TaskAssembly Condition=" '$(_CapnpcCsharp_TaskAssembly)' == '' ">..\tasks\$(_CapnpcCsharp_TaskFolder)\CapnpC.CSharp.MsBuild.Generation.dll - - - - - diff --git a/Capnpc.Csharp.MsBuild.Generation/build/Capnpc.Csharp.MsBuild.Generation.targets b/Capnpc.Csharp.MsBuild.Generation/build/Capnpc.Csharp.MsBuild.Generation.targets deleted file mode 100644 index 718f826..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/build/Capnpc.Csharp.MsBuild.Generation.targets +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - false - true - - - <_CapnpcCsharp_EnableDefaultCompileItems Condition="'$(CapnpcCsharp_EnableDefaultCompileItems)' == '' And '$(UsingMicrosoftNETSdk)' == 'true'">true - <_CapnpcCsharp_EnableDefaultCompileItems Condition="'$(CapnpcCsharp_EnableDefaultCompileItems)' == 'true' And '$(UsingMicrosoftNETSdk)' == 'true'">true - - - - - BeforeUpdateCapnpFilesInProject; - UpdateCapnpFilesInProject; - IncludeCodeBehindFilesInProject; - AfterUpdateCapnpFilesInProject; - $(BuildDependsOn) - - - CleanCapnpFilesInProject; - $(CleanDependsOn) - - - SwitchToForceGenerate; - $(RebuildDependsOn) - - - - - - - - - - - - - - - - - - true - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Capnpc.Csharp.MsBuild.Generation/build/Capnpc.Csharp.MsBuild.Generation.tasks b/Capnpc.Csharp.MsBuild.Generation/build/Capnpc.Csharp.MsBuild.Generation.tasks deleted file mode 100644 index 9859d7b..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/build/Capnpc.Csharp.MsBuild.Generation.tasks +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/Capnpc.Csharp.MsBuild.Generation/buildMultiTargeting/Capnpc.Csharp.MsBuild.Generation.props b/Capnpc.Csharp.MsBuild.Generation/buildMultiTargeting/Capnpc.Csharp.MsBuild.Generation.props deleted file mode 100644 index 62930dd..0000000 --- a/Capnpc.Csharp.MsBuild.Generation/buildMultiTargeting/Capnpc.Csharp.MsBuild.Generation.props +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file