Giter Club home page Giter Club logo

Comments (4)

douglasg14b avatar douglasg14b commented on May 26, 2024

Please provide additional information, such as the full error message, a code example that generates it...etc

It's not possible to help you otherwise.

from betterconsoletables.

atari-monk avatar atari-monk commented on May 26, 2024

Yes, hello
better-console-tables-wrapper.zip
I atached repo.
I want to wrapp lib to learn to use it, and produce some standard way of it.
I add test app. Here is proj file

<Project Sdk="Microsoft.NET.Sdk">

    <ItemGroup>
        <ProjectReference Include="..\Better.Console.Tables.Wrapper\Better.Console.Tables.Wrapper.csproj" />
    </ItemGroup>

    <PropertyGroup>
        <OutputType>Exe</OutputType>
        <TargetFramework>net6.0</TargetFramework>
        <ImplicitUsings>enable</ImplicitUsings>
        <Nullable>enable</Nullable>
    </PropertyGroup>

    <ItemGroup>
        <PackageReference Include="BetterConsoleTables" Version="1.1.3" />
    </ItemGroup>

</Project>

I copy first method from ur example

using BetterConsoleTables;
using AConsole = System.Console;

namespace Better.Console.Tables.TestApp;

internal class Program
{
    private static void Main(string[] args)
    {
        NoRows();
        AConsole.WriteLine("Complete");
        AConsole.ReadLine();
    }

    private static void NoRows()
    {
        Column[] headers = new[]
        {
            new Column("Left"),
            new Column("Left Header"),
            new Column("Right Header"),
        };


        var table = new Table(headers);
        table.Config = TableConfig.Unicode();

        var ret = table.ToString();

        AConsole.Write(ret);
    }
}

This is my problem
The type or namespace name 'Column' could not be found (are you missing a using directive or an assembly reference?

Now there was some warrning that nuget is not stamped by nuget,org or whatever, but after admin mode it was gone when installing it.

I checked from ur repo for this namespace. It is there.
There was problem with compiling ur repo till i comented some preformance testing class.
I dont know what is the problem

from betterconsoletables.

douglasg14b avatar douglasg14b commented on May 26, 2024

The problem is you have version 1 installed from nuget, and are trying to use the v2 api. Types are not found because they don't exist, that's not a problem with this lib.

The readme for this repo has examples of how to use v1 of this library, please use those if you are using v1. If you want to use v2, you will need to install the beta nuget package.

from betterconsoletables.

atari-monk avatar atari-monk commented on May 26, 2024

Thank you for information.
I will try to use it when i go back to this task.

from betterconsoletables.

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.