Browse Source

Add nuspec.

Changed project settings to produce xml-doc and debug symbols in release configuration.
newNRvisualizers
Daniel Grunwald 14 years ago
parent
commit
54168d5c0f
  1. 4
      ICSharpCode.NRefactory.CSharp/ICSharpCode.NRefactory.CSharp.csproj
  2. 2
      ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs
  3. 5
      ICSharpCode.NRefactory.CSharp/OutputVisitor/CodeDomConvertVisitor.cs
  4. 4
      ICSharpCode.NRefactory.CSharp/Properties/AssemblyInfo.cs
  5. 5
      ICSharpCode.NRefactory.CSharp/Refactoring/Action.cs
  6. 3
      ICSharpCode.NRefactory.CSharp/Refactoring/TypeSystemAstBuilder.cs
  7. 4
      ICSharpCode.NRefactory.CSharp/Resolver/CSharpResolver.cs
  8. 6
      ICSharpCode.NRefactory.CSharp/Resolver/FindReferences.cs
  9. 2
      ICSharpCode.NRefactory.CSharp/Resolver/LambdaResolveResult.cs
  10. 2
      ICSharpCode.NRefactory.CSharp/TypeSystem/TypeOrNamespaceReference.cs
  11. 20
      ICSharpCode.NRefactory/ICSharpCode.NRefactory.csproj
  12. 4
      ICSharpCode.NRefactory/Properties/AssemblyInfo.cs
  13. 3
      NRefactory.sln
  14. 31
      Packages/ICSharpCode.NRefactory.nuspec
  15. 2
      doc/copyright.txt
  16. 2
      doc/license.txt

4
ICSharpCode.NRefactory.CSharp/ICSharpCode.NRefactory.CSharp.csproj

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
<AssemblyOriginatorKeyFile>..\ICSharpCode.NRefactory.snk</AssemblyOriginatorKeyFile>
<DelaySign>False</DelaySign>
<AssemblyOriginatorKeyMode>File</AssemblyOriginatorKeyMode>
<DocumentationFile>..\ICSharpCode.NRefactory\bin\$(Configuration)\ICSharpCode.NRefactory.CSharp.xml</DocumentationFile>
<NoWarn>1591,1587,1570</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
@ -37,7 +39,7 @@ @@ -37,7 +39,7 @@
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>..\ICSharpCode.NRefactory\bin\Release\</OutputPath>
<DebugSymbols>false</DebugSymbols>
<DebugType>None</DebugType>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
<DefineConstants>TRACE;FULL_AST</DefineConstants>

2
ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs

@ -200,7 +200,7 @@ namespace ICSharpCode.NRefactory.CSharp @@ -200,7 +200,7 @@ namespace ICSharpCode.NRefactory.CSharp
/// Writes a comma.
/// </summary>
/// <param name="nextNode">The next node after the comma.</param>
/// <param name="noSpacesAfterComma">When set prevents printing a space after comma.</param>
/// <param name="noSpaceAfterComma">When set prevents printing a space after comma.</param>
void Comma (AstNode nextNode, bool noSpaceAfterComma = false)
{
WriteSpecialsUpToRole (AstNode.Roles.Comma, nextNode);

5
ICSharpCode.NRefactory.CSharp/OutputVisitor/CodeDomConvertVisitor.cs

@ -54,7 +54,7 @@ namespace ICSharpCode.NRefactory.CSharp @@ -54,7 +54,7 @@ namespace ICSharpCode.NRefactory.CSharp
/// Converts a compilation unit to CodeDom.
/// </summary>
/// <param name="compilationUnit">The input compilation unit.</param>
/// <param name="context">Type resolve context, used for resolving type references.</param>
/// <param name="compilation">The current compilation.</param>
/// <param name="parsedFile">CSharpParsedFile, used for resolving.</param>
/// <returns>Converted CodeCompileUnit</returns>
/// <remarks>
@ -75,8 +75,7 @@ namespace ICSharpCode.NRefactory.CSharp @@ -75,8 +75,7 @@ namespace ICSharpCode.NRefactory.CSharp
/// Converts a C# AST node to CodeDom.
/// </summary>
/// <param name="node">The input node.</param>
/// <param name="resolveVisitor">The resolve visitor.
/// The visitor must be already initialized for the file containing the given node (Scan must be called).</param>
/// <param name="resolver">The AST resolver.</param>
/// <returns>The node converted into CodeDom</returns>
/// <remarks>
/// This conversion process requires a resolver because it needs to distinguish field/property/event references etc.

4
ICSharpCode.NRefactory.CSharp/Properties/AssemblyInfo.cs

@ -14,7 +14,7 @@ using System.Runtime.InteropServices; @@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("ICSharpCode")]
[assembly: AssemblyProduct("SharpDevelop/MonoDevelop")]
[assembly: AssemblyCopyright("Copyright 2010-2011 AlphaSierraPapa")]
[assembly: AssemblyCopyright("Copyright 2010-2012 AlphaSierraPapa")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@ -28,4 +28,4 @@ using System.Runtime.InteropServices; @@ -28,4 +28,4 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("5.0.0.2")]
[assembly: AssemblyVersion("5.0.0.3")]

5
ICSharpCode.NRefactory.CSharp/Refactoring/Action.cs

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
//
//
// Change.cs
//
// Author:
@ -46,9 +46,6 @@ namespace ICSharpCode.NRefactory.CSharp.Refactoring @@ -46,9 +46,6 @@ namespace ICSharpCode.NRefactory.CSharp.Refactoring
/// <summary>
/// Performs the change.
/// </summary>
/// <param name='rctx'>
/// The context on which the change should perform on.
/// </param>
public abstract void Perform (Script script);
}
}

3
ICSharpCode.NRefactory.CSharp/Refactoring/TypeSystemAstBuilder.cs

@ -39,9 +39,6 @@ namespace ICSharpCode.NRefactory.CSharp.Refactoring @@ -39,9 +39,6 @@ namespace ICSharpCode.NRefactory.CSharp.Refactoring
/// <summary>
/// Creates a new TypeSystemAstBuilder.
/// </summary>
/// <param name="context">
/// Context used for resolving types.
/// </param>
public TypeSystemAstBuilder()
{
InitProperties();

4
ICSharpCode.NRefactory.CSharp/Resolver/CSharpResolver.cs

@ -2094,10 +2094,6 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver @@ -2094,10 +2094,6 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver
/// The initializer elements. May be null if no array initializer was specified.
/// The resolver may mutate this array to wrap elements in <see cref="ConversionResolveResult"/>s!
/// </param>
/// <param name="allowArrayConstants">
/// Specifies whether to allow treating single-dimensional arrays like compile-time constants.
/// This is used for attribute arguments.
/// </param>
public ArrayCreateResolveResult ResolveArrayCreation(IType elementType, int dimensions = 1, ResolveResult[] sizeArguments = null, ResolveResult[] initializerElements = null)
{
if (sizeArguments != null && dimensions != Math.Max(1, sizeArguments.Length))

6
ICSharpCode.NRefactory.CSharp/Resolver/FindReferences.cs

@ -297,8 +297,9 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver @@ -297,8 +297,9 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver
/// <param name="searchScope">The search scope for which to look.</param>
/// <param name="parsedFile">The type system representation of the file being searched.</param>
/// <param name="compilationUnit">The compilation unit of the file being searched.</param>
/// <param name="context">The type resolve context to use for resolving the file.</param>
/// <param name="compilation">The compilation for the project that contains the file.</param>
/// <param name="callback">Callback used to report the references that were found.</param>
/// <param name="cancellationToken">CancellationToken that may be used to cancel the operation.</param>
public void FindReferencesInFile(IFindReferenceSearchScope searchScope, CSharpParsedFile parsedFile, CompilationUnit compilationUnit,
ICompilation compilation, FoundReferenceCallback callback, CancellationToken cancellationToken)
{
@ -313,8 +314,9 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver @@ -313,8 +314,9 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver
/// <param name="searchScopes">The search scopes for which to look.</param>
/// <param name="parsedFile">The type system representation of the file being searched.</param>
/// <param name="compilationUnit">The compilation unit of the file being searched.</param>
/// <param name="compilation">The compilation for the project that contains the file.</param>
/// <param name="callback">Callback used to report the references that were found.</param>
/// <param name="cancellationToken">Cancellation token.</param>
/// <param name="cancellationToken">CancellationToken that may be used to cancel the operation.</param>
public void FindReferencesInFile(IList<IFindReferenceSearchScope> searchScopes, CSharpParsedFile parsedFile, CompilationUnit compilationUnit,
ICompilation compilation, FoundReferenceCallback callback, CancellationToken cancellationToken)
{

2
ICSharpCode.NRefactory.CSharp/Resolver/LambdaResolveResult.cs

@ -69,7 +69,7 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver @@ -69,7 +69,7 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver
/// Gets whether the lambda body is valid for the given parameter types and return type.
/// </summary>
/// <returns>
/// Produces a <see cref="Conversion.AnonymousFunctionConversion"/> if the lambda is valid;
/// Produces a conversion with <see cref="Conversion.IsAnonymousFunctionConversion"/>=<c>true</c> if the lambda is valid;
/// otherwise returns <see cref="Conversion.None"/>.
/// </returns>
public abstract Conversion IsValid(IType[] parameterTypes, IType returnType, Conversions conversions);

2
ICSharpCode.NRefactory.CSharp/TypeSystem/TypeOrNamespaceReference.cs

@ -44,7 +44,7 @@ namespace ICSharpCode.NRefactory.CSharp.TypeSystem @@ -44,7 +44,7 @@ namespace ICSharpCode.NRefactory.CSharp.TypeSystem
}
/// <summary>
/// Returns the type that is referenced; or <see cref="SpecialTypes.UnknownType"/> if the type isn't found.
/// Returns the type that is referenced; or <see cref="SpecialType.UnknownType"/> if the type isn't found.
/// </summary>
public IType ResolveType(CSharpResolver resolver)
{

20
ICSharpCode.NRefactory/ICSharpCode.NRefactory.csproj

@ -13,14 +13,15 @@ @@ -13,14 +13,15 @@
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
<NoStdLib>False</NoStdLib>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<NoWarn>1591,0618</NoWarn>
<RunCodeAnalysis>False</RunCodeAnalysis>
<CodeAnalysisRules>-Microsoft.Design#CA1026;-Microsoft.Security#CA2104</CodeAnalysisRules>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>..\ICSharpCode.NRefactory.snk</AssemblyOriginatorKeyFile>
<DelaySign>False</DelaySign>
<AssemblyOriginatorKeyMode>File</AssemblyOriginatorKeyMode>
<DocumentationFile>bin\Release\ICSharpCode.NRefactory.xml</DocumentationFile>
<DocumentationFile>bin\$(Configuration)\ICSharpCode.NRefactory.xml</DocumentationFile>
<WarningLevel>4</WarningLevel>
<NoWarn>1591</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(Platform)' == 'AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
@ -31,26 +32,19 @@ @@ -31,26 +32,19 @@
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>bin\Debug\</OutputPath>
<DebugType>Full</DebugType>
<Optimize>False</Optimize>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<CheckForOverflowUnderflow>True</CheckForOverflowUnderflow>
<DebugSymbols>true</DebugSymbols>
<DebugType>Full</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<OutputPath>bin\Release\</OutputPath>
<DebugType>PdbOnly</DebugType>
<Optimize>True</Optimize>
<DefineConstants>TRACE</DefineConstants>
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<WarningLevel>4</WarningLevel>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<WarningLevel>4</WarningLevel>
<DebugType>Full</DebugType>
<DebugSymbols>true</DebugSymbols>
<DebugSymbols>false</DebugSymbols>
<DebugType>PdbOnly</DebugType>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />

4
ICSharpCode.NRefactory/Properties/AssemblyInfo.cs

@ -14,7 +14,7 @@ using System.Runtime.InteropServices; @@ -14,7 +14,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("ICSharpCode")]
[assembly: AssemblyProduct("SharpDevelop/MonoDevelop")]
[assembly: AssemblyCopyright("Copyright 2010-2011 AlphaSierraPapa")]
[assembly: AssemblyCopyright("Copyright 2010-2012 AlphaSierraPapa")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@ -29,4 +29,4 @@ using System.Runtime.InteropServices; @@ -29,4 +29,4 @@ using System.Runtime.InteropServices;
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("5.0.0.2")]
[assembly: AssemblyVersion("5.0.0.3")]

3
NRefactory.sln

@ -1,11 +1,12 @@ @@ -1,11 +1,12 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
# SharpDevelop 4.2.0.8158-alpha
# SharpDevelop 4.2.0.8299-alpha
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DC98210E-1646-483B-819A-2BB8272461E4}"
ProjectSection(SolutionItems) = preProject
README = README
doc\TODO = doc\TODO
Packages\ICSharpCode.NRefactory.nuspec = Packages\ICSharpCode.NRefactory.nuspec
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ICSharpCode.NRefactory", "ICSharpCode.NRefactory\ICSharpCode.NRefactory.csproj", "{3B2A5653-EC97-4001-BB9B-D90F1AF2C371}"

31
Packages/ICSharpCode.NRefactory.nuspec

@ -0,0 +1,31 @@ @@ -0,0 +1,31 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>ICSharpCode.NRefactory</id>
<version>5.0.0.3</version>
<title>NRefactory</title>
<authors>Daniel Grunwald, Mike Krüger</authors>
<owners>Daniel Grunwald</owners>
<licenseUrl>http://www.opensource.org/licenses/mit-license.php</licenseUrl>
<projectUrl>https://github.com/icsharpcode/NRefactory/</projectUrl>
<iconUrl>http://community.sharpdevelop.net/blogs/mattward/SharpDevelop.png</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>NRefactory supports analysis of C# source code: it includes a parser, abstract syntax tree, type system, semantic analysis (resolver), code completion, and several refactorings.</description>
<releaseNotes>This is an alpha release. Expect bugs and breaking changes in the future.</releaseNotes>
<copyright>Copyright 2010-2012 AlphaSierraPapa</copyright>
<tags>C# Parser Semantic Analysis SharpDevelop</tags>
<dependencies>
<dependency id="Mono.Cecil" version="0.9.5.2" />
</dependencies>
</metadata>
<files>
<file src="..\ICSharpCode.NRefactory\bin\Release\ICSharpCode.NRefactory.dll" target="lib\Net40" />
<file src="..\ICSharpCode.NRefactory\bin\Release\ICSharpCode.NRefactory.pdb" target="lib\Net40" />
<file src="..\ICSharpCode.NRefactory\bin\Release\ICSharpCode.NRefactory.xml" target="lib\Net40" />
<file src="..\ICSharpCode.NRefactory\bin\Release\ICSharpCode.NRefactory.CSharp.dll" target="lib\Net40" />
<file src="..\ICSharpCode.NRefactory\bin\Release\ICSharpCode.NRefactory.CSharp.pdb" target="lib\Net40" />
<file src="..\ICSharpCode.NRefactory\bin\Release\ICSharpCode.NRefactory.CSharp.xml" target="lib\Net40" />
<file src="..\ICSharpCode.NRefactory\**\*.cs" target="src\ICSharpCode.NRefactory" />
<file src="..\ICSharpCode.NRefactory.CSharp\**\*.cs" target="src\ICSharpCode.NRefactory.CSharp" />
</files>
</package>

2
doc/copyright.txt

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
Copyright 2002-2010 by
Copyright 2002-2012 by
AlphaSierraPapa, Christoph Wille
Vordernberger Strasse 27/8

2
doc/license.txt

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
Copyright (c) 2010 AlphaSierraPapa
Copyright (c) 2010-2012 AlphaSierraPapa
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software

Loading…
Cancel
Save